v0.0.7auto_direction
This package changes the direction of a widget from ltr direction into rtl direction and vice versa based on the language of the text provided.
88Likes 1.1K30-day downloads40Pub points
AndroidiOSWebmacOSWindowsLinux
This flutter package changes the direction of a widget from ltr direction into rtl direction and vice versa based on the language of the text provided.
{"sdk":"flutter"}^0.18.1{"sdk":"flutter"}English project snapshot. Visit GitHub for the latest content.
This widget changes the direction of a widget from ltr direction into rtl direction and vice versa based on the language of the text provided.
Auto RTL on a TextField
This widget will wrap its child with a Directionality widget and it will decide the direction based on the provided text.
...
String text = "";
...
AutoDirection(
text: text,
child: TextField(
onChanged: (str){
setState(() {
text = str;
});
},
),
)