Home > Back-end >  how to change the text direction of the error message for the TextFormField to make it right to left
how to change the text direction of the error message for the TextFormField to make it right to left

Time:02-12

InputDecoration has the property for changing it's style but can't find anything about it's direction

text form error

CodePudding user response:

Wrap your TextFormField inside Directionality Widget and set the direction to rtl like this :

Directionality(
        textDirection: TextDirection.rtl,
        child: TextFormField()
     )
  • Related