v0.0.7auto_direction
이 패키지는 제공된 텍스트의 언어에 따라 위젯의 방향을 LTR에서 RTL로, 또는 그 반대로 변경합니다.
88좋아요 21430일 다운로드140Pub 점수
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;
});
},
),
)