FLUTTER ECOSYSTEM

AhmedAlYousif/auto_direction

이 플러터 패키지는 제공된 텍스트의 언어에 따라 위젯의 방향을 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;
      });
    },
  ),
)