Skip to main content

arabize_lints 1.0.1 copy "arabize_lints: ^1.0.1" to clipboard
arabize_lints: ^1.0.1 copied to clipboard

Analyzer lints that catch left-to-right layout assumptions in Flutter code.

example/README.md

Example #

Add the plugin to analysis_options.yaml:

plugins:
  arabize_lints: ^1.0.0

Then run flutter analyze, or open the file in your editor:

Padding(
  padding: const EdgeInsets.only(left: 16), // prefer_directional_edge_insets
  child: Text(
    'arabize',
    textAlign: TextAlign.left, // prefer_text_align_start_end
  ),
)

Apply the quick fix and it becomes:

Padding(
  padding: const EdgeInsetsDirectional.only(start: 16),
  child: Text('arabize', textAlign: TextAlign.start),
)

A Flutter app that triggers every rule is in the repository.

0
likes
160
points
683
downloads

Documentation

API reference

Publisher

verified publisheromarelnasherty.com

Weekly Downloads

Analyzer lints that catch left-to-right layout assumptions in Flutter code.

Repository (GitHub)
View/report issues

Topics

#arabic #rtl #localization #flutter

License

MIT (license)

Dependencies

analysis_server_plugin, analyzer, analyzer_plugin

More

Packages that depend on arabize_lints