FLUTTER ECOSYSTEM

AhmedAlYousif/auto_direction

यह फ्लटर पैकेज प्रदान किए गए टेक्स्ट की भाषा के आधार पर एक विजेट की दिशा को LTR से RTL और विपरीत दिशा में बदलता है।

auto_direction प्रोजेक्ट कवर
Stars
21
Forks
23
अंतिम पुश (UTC)
10 नव॰ 2023
प्रोजेक्ट स्थिति
आर्काइव
Ahmed Al Yousif GitHub avatar
GITHUB User

Ahmed Al Yousif ↗

भाषाएँC++CMakeDartHTMLCSwiftObjective-CShellJavaKotlin

तकनीकी विषय

इस रिपॉज़िटरी के पैकेज

उपयोग की गई निर्भरताएँ

निर्भरता सूची 3 आइटम
  • flutter{"sdk":"flutter"}
  • intl^0.18.1
  • flutter_testडेवलपमेंट{"sdk":"flutter"}

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

README खोलें / बंद करें

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