FLUTTER ECOSYSTEM

AhmedAlYousif/auto_direction

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.

Capa do projeto auto_direction
Stars
21
Forks
23
Último push (UTC)
10 de nov. de 2023
Status do projeto
Arquivado
Ahmed Al Yousif GitHub avatar
GITHUB User

Ahmed Al Yousif ↗

LinguagensC++CMakeDartHTMLCSwiftObjective-CShellJavaKotlin

Tópicos técnicos

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 3 itens
  • flutter{"sdk":"flutter"}
  • intl^0.18.1
  • flutter_testDesenvolvimento{"sdk":"flutter"}

README original

Texto original em inglês. Visite o GitHub para a versão atual.

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