var phoneNumber = new Row( mainAxisSize: MainAxisSize.min, children: <Widget>[ Expanded( child: new Padding( padding: const EdgeInsets.all(20.0), child: countryCodePicker, ), ), Expanded( child: new Padding( padding: const EdgeInsets.all(20.0), child: mobileNumber, ), ), ], );