@@ -183,99 +183,107 @@ class _CheckoutDetailsPageState extends State<CheckoutDetailsPage> {
183183 crossAxisAlignment: CrossAxisAlignment .start,
184184 mainAxisAlignment: MainAxisAlignment .spaceAround,
185185 children: < Widget > [
186- Row (
187- children: < Widget > [
188- Flexible (
189- child: wsTextEditingRow (
190- context,
191- heading: trans (context, "First Name" ),
192- controller: _txtShippingFirstName,
193- shouldAutoFocus: true ,
186+ Flexible (
187+ child: Row (
188+ children: < Widget > [
189+ Flexible (
190+ child: wsTextEditingRow (
191+ context,
192+ heading: trans (context, "First Name" ),
193+ controller: _txtShippingFirstName,
194+ shouldAutoFocus: true ,
195+ ),
194196 ),
195- ),
196- Flexible (
197- child : wsTextEditingRow (
198- context,
199- heading : trans (context, "Last Name" ) ,
200- controller : _txtShippingLastName ,
197+ Flexible (
198+ child : wsTextEditingRow (
199+ context,
200+ heading : trans ( context, "Last Name" ) ,
201+ controller : _txtShippingLastName ,
202+ ) ,
201203 ),
202- ) ,
203- ] ,
204- crossAxisAlignment : CrossAxisAlignment .center ,
205- mainAxisAlignment : MainAxisAlignment .spaceEvenly ,
204+ ] ,
205+ crossAxisAlignment : CrossAxisAlignment .center ,
206+ mainAxisAlignment : MainAxisAlignment .spaceEvenly ,
207+ ) ,
206208 ),
207- Row (
208- children: < Widget > [
209- Flexible (
210- child: wsTextEditingRow (
211- context,
212- heading: trans (context, "Address Line" ),
213- controller: _txtShippingAddressLine,
209+ Flexible (
210+ child: Row (
211+ children: < Widget > [
212+ Flexible (
213+ child: wsTextEditingRow (
214+ context,
215+ heading: trans (context, "Address Line" ),
216+ controller: _txtShippingAddressLine,
217+ ),
214218 ),
215- ),
216- Flexible (
217- child : wsTextEditingRow (
218- context,
219- heading : trans (context, "City" ) ,
220- controller : _txtShippingCity ,
219+ Flexible (
220+ child : wsTextEditingRow (
221+ context,
222+ heading : trans ( context, "City" ) ,
223+ controller : _txtShippingCity ,
224+ ) ,
221225 ),
222- ) ,
223- ] ,
226+ ] ,
227+ ) ,
224228 ),
225- Row (
226- children: < Widget > [
227- Flexible (
228- child: wsTextEditingRow (
229- context,
230- heading: trans (context, "Postal code" ),
231- controller: _txtShippingPostalCode,
229+ Flexible (
230+ child: Row (
231+ children: < Widget > [
232+ Flexible (
233+ child: wsTextEditingRow (
234+ context,
235+ heading: trans (context, "Postal code" ),
236+ controller: _txtShippingPostalCode,
237+ ),
232238 ),
233- ),
234- Flexible (
235- child : wsTextEditingRow (context,
236- heading : trans (context, "Email address" ) ,
237- keyboardType : TextInputType .emailAddress ,
238- controller : _txtShippingEmailAddress ),
239- ) ,
240- ] ,
239+ Flexible (
240+ child : wsTextEditingRow (context,
241+ heading : trans (context, "Email address" ) ,
242+ keyboardType : TextInputType .emailAddress ,
243+ controller : _txtShippingEmailAddress) ,
244+ ),
245+ ] ,
246+ ) ,
241247 ),
242- Row (
243- children: < Widget > [
244- (_strBillingCountry == "United States"
245- ? Flexible (
246- child: Padding (
247- child: wsSecondaryButton (
248- context,
249- title: (_strBillingState != null &&
250- _strBillingState.isNotEmpty
251- ? trans (context, "Selected" ) +
252- "\n " +
253- _strBillingState
254- : trans (context, "Select state" )),
255- action: _showSelectStateModal,
248+ Flexible (
249+ child: Row (
250+ children: < Widget > [
251+ (_strBillingCountry == "United States"
252+ ? Flexible (
253+ child: Padding (
254+ child: wsSecondaryButton (
255+ context,
256+ title: (_strBillingState != null &&
257+ _strBillingState.isNotEmpty
258+ ? trans (context, "Selected" ) +
259+ "\n " +
260+ _strBillingState
261+ : trans (context, "Select state" )),
262+ action: _showSelectStateModal,
263+ ),
264+ padding: EdgeInsets .all (8 ),
256265 ),
257- padding : EdgeInsets . all ( 8 ),
258- ),
259- )
260- : null ),
261- Flexible (
262- child : Padding (
263- child : wsSecondaryButton (
264- context,
265- title : (_strBillingCountry != null &&
266- _strBillingCountry.isNotEmpty
267- ? trans (context, "Selected" ) +
268- " \n " +
269- _strBillingCountry
270- : trans (context, "Select country" ) ),
271- action : _showSelectCountryModal ,
266+ )
267+ : null ),
268+ Flexible (
269+ child : Padding (
270+ child : wsSecondaryButton (
271+ context,
272+ title : (_strBillingCountry != null &&
273+ _strBillingCountry.isNotEmpty
274+ ? trans (context, "Selected" ) +
275+ " \n " +
276+ _strBillingCountry
277+ : trans (context, "Select country" )),
278+ action : _showSelectCountryModal,
279+ ),
280+ padding : EdgeInsets . all ( 8 ) ,
272281 ),
273- padding: EdgeInsets .all (8 ),
274- ),
275- )
276- ].where ((element) => element != null ).toList (),
277- crossAxisAlignment: CrossAxisAlignment .center,
278- mainAxisAlignment: MainAxisAlignment .spaceEvenly,
282+ )
283+ ].where ((element) => element != null ).toList (),
284+ crossAxisAlignment: CrossAxisAlignment .center,
285+ mainAxisAlignment: MainAxisAlignment .spaceEvenly,
286+ ),
279287 )
280288 ],
281289 ),
@@ -286,7 +294,7 @@ class _CheckoutDetailsPageState extends State<CheckoutDetailsPage> {
286294 ),
287295 padding: EdgeInsets .all (8 ),
288296 ),
289- height: (constraints.maxHeight - constraints.minHeight) * 0.5 ,
297+ height: (constraints.maxHeight - constraints.minHeight) * 0.6 ,
290298 ),
291299 Column (
292300 children: < Widget > [
0 commit comments