FLUTTER ECOSYSTEM

AhmedAlYousif/auto_direction

このFlutterパッケージは、提供されたテキストの言語に基づいて、ウィジェットの方向をLTRからRTL、またはその逆に変更します。

auto_direction のプロジェクト画像
Stars
21
Forks
23
最終プッシュ(UTC)
2023/11/10
プロジェクト状態
アーカイブ済み
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;
      });
    },
  ),
)