Skip to content
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.
Dart Objective-C Shell Java
Branch: master
Clone or download
Latest commit 91c4e2e Sep 24, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example Update dependencies Sep 24, 2019
gif add a gif to readme May 24, 2019
lib remove extra lines May 24, 2019
test
.gitignore
.metadata
CHANGELOG.md
LICENSE init May 23, 2019
README.md edit a gif to readme May 24, 2019
pubspec.lock Update dependencies Sep 24, 2019
pubspec.yaml Update dependencies Sep 24, 2019

README.md

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;
      });
    },
  ),
)
You can’t perform that action at this time.