v0.0.7auto_direction
Este pacote altera a direção de um widget da direção LTR para RTL e vice-versa com base no idioma do texto fornecido.
88Curtidas 1,1 milDownloads em 30 dias40Pontos Pub
AndroidiOSWebmacOSWindowsLinux
Este pacote Flutter altera a direção de um widget da direção LTR para RTL e vice-versa com base na língua do texto fornecido.
{"sdk":"flutter"}^0.18.1{"sdk":"flutter"}Texto original em inglês. Visite o GitHub para a versão atual.
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;
});
},
),
)