Search packages, repositories and app categories

GitHub repositoryAhmedAlYousif/auto_direction

auto_direction

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.

auto_direction project cover
Stars
21
Forks
23
Last push (UTC)
Nov 10, 2023
Project status
Archived

Original README

English project snapshot. Visit GitHub for the latest content.

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;
      });
    },
  ),
)
Ahmed Al Yousif GitHub avatar
GitHub author

Ahmed Al Yousif ↗

LanguagesC++CMakeDartHTMLCSwiftObjective-CShellJavaKotlin

Categories

Packages published by this repository

Dependencies used

Dependency list 3 items

  • flutter{"sdk":"flutter"}
  • intl^0.18.1
  • flutter_testDevelopment{"sdk":"flutter"}

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗