i am trying to add alignment to the hint-text inside Text-field.but it is not working. How to bring it to centre?? How to write text in curved shape???
Container( child: new TextFormField( controller: _pass, textAlign: TextAlign.center, decoration: new InputDecoration.collapsed( hintText: " PASSWORD", ), )),
use textAlign: TextAlign.center,
inside TextFormField or textfield
here is the code
The Output Like This
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With