Home > Mobile >  Underlines of TextFormFields in form not uniform no matter what I do. How to keep a uniform thicknes
Underlines of TextFormFields in form not uniform no matter what I do. How to keep a uniform thicknes

Time:01-17

I'm brand new to flutter and building a form in Flutter containing multiple TextFormFields, and a radio button. But, something weird is happening where the textformfields above the radio buttons are not uniform and keep changing randomly based on other changes I make. In my Screen shot of my application on android emulator with mainAxisAlignment spaceEvenly.

Screen shot of my application on android emulator with mainAxisAlignment start.

Screen shot of my application on android emulator with mainAxisAlignment  start.

CodePudding user response:

this is a bug from the android emulator. try running your app on a real device.

CodePudding user response:

When you use mainAxisAlignment as 'start', all the TextFormFields are placed one after another without any spacing between them, so the line thickness is increased (two lines overlap). Instead, when you spaceEvenly, TextFormFields are separated and the line appears thin, the original thickness.

  •  Tags:  
  • Related