FLUTTER ECOSYSTEM

AhmedAlYousif/auto_direction

Dieses Flutter-Paket ändert die Richtung eines Widgets von LTR in RTL und umgekehrt basierend auf der Sprache des bereitgestellten Textes.

Projektcover von auto_direction
Stars
21
Forks
23
Letzter Push (UTC)
10.11.2023
Projektstatus
Archiviert
Ahmed Al Yousif GitHub avatar
GITHUB User

Ahmed Al Yousif ↗

SprachenC++CMakeDartHTMLCSwiftObjective-CShellJavaKotlin

Technische Themen

Von diesem Repository veröffentlichte Pakete

Verwendete Abhängigkeiten

Abhängigkeiten 3 Einträge
  • flutter{"sdk":"flutter"}
  • intl^0.18.1
  • flutter_testEntwicklung{"sdk":"flutter"}

Original-README

Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.

Projekt-README ein-/ausklappen

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;
      });
    },
  ),
)