v0.0.7auto_direction
इस पैकेज में दिए गए पाठ की भाषा के आधार पर एक विजेट की दिशा को LTR से RTL और विपरीत में बदला जाता है।
88लाइक 1.1 हज़ार30-दिन डाउनलोड40Pub अंक
AndroidiOSWebmacOSWindowsLinux
यह फ्लटर पैकेज प्रदान किए गए टेक्स्ट की भाषा के आधार पर एक विजेट की दिशा को LTR से RTL और विपरीत दिशा में बदलता है।
{"sdk":"flutter"}^0.18.1{"sdk":"flutter"}यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
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
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;
});
},
),
)