Home > Enterprise >  First Name and Last Name Single line error during validation
First Name and Last Name Single line error during validation

Time:07-29

Normal image

1

Error image flutter

2

Hello everyone, I am trying to keep First Name and Last Name in a single line during validation. If I don't add text in both so, I am getting it in a single line, but when I don't add text in only one one tag at that time another container is staying up-down. So, can You please suggest, how can I keep these both in a single line and together when one or both container have error. Thank

CodePudding user response:

if you wrap your container with Row widget, then you can set property to the row

Row(
 // to align vertically both children to the top 
 crossAxisAlignment: CrossAxisAlignment.start,
 children:[
   Container() // first name
   Container() // last name
 ]),
// others widget
 

CodePudding user response:

Row(

crossAxisAlignment: CrossAxisAlignment.start,

children:[

Expanded(),

Expanded()

])

  • Related