auto_direction 0.0.4+1

Flutter Android iOS web

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.

auto_direction #

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

Getting Started #

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;
      });
    },
  ),
)
21
likes
90
pub points
84%
popularity

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.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

ahmadalsiddeeq@gmail.com

License

MIT (LICENSE)

Dependencies

flutter, intl

More

Packages that depend on auto_direction