auto_direction 0.0.7 copy "auto_direction: ^0.0.7" to clipboard
auto_direction: ^0.0.7 copied to clipboard

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;
      });
    },
  ),
)
copied to clipboard
87
likes
140
points
290
downloads

Publisher

verified publisherahmedy.me

Weekly Downloads

2024.10.03 - 2025.04.17

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)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, intl

More

Packages that depend on auto_direction