FLUTTER ECOSYSTEM

auto_direction

This package changes the direction of a widget from ltr direction into rtl direction and vice versa based on the language of the text provided.

auto_direction cover
Latest version
0.0.7
30-day downloads
214
Likes
88
Pub points
140

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

The auto_direction package automatically adjusts the text direction of widgets in Flutter applications based on the detected language, switching between left-to-right (LTR) and right-to-left (RTL) layouts. It simplifies internationalization by dynamically adapting UI direction without manual intervention, ensuring proper rendering for languages like Arabic, Hebrew, and others that use RTL scripts. The package integrates seamlessly into apps targeting multilingual audiences.

Use cases
  • Dynamic UI layout adaptation
  • Multilingual app support
  • RTL/LTR text direction switching
  • Internationalized user interfaces
  • Automatic language-based layout adjustment
Key features
  • Language-based direction detection
  • Automatic LTR/RTL switching
  • Seamless integration with Flutter widgets
  • Support for multiple platforms
  • Minimal configuration required
Suitable for
  • Apps targeting global audiences
  • Developers using Flutter for internationalization
  • Projects requiring dynamic text direction
  • UIs with mixed language content
  • Web and mobile apps with RTL language support
Considerations
  • Requires accurate language detection
  • May need additional logic for complex layouts
  • Not suitable for static directional designs
  • Depends on correct locale setup
  • Limited to text direction changes, not full RTL themes
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add auto_direction

Categories

Source repository

Related projects