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

A custom Flutter lint rule that identifies and prevents hardcoded strings in widget constructors, promoting better internationalization practices and code maintainability.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add hardcoded_strings_lint

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  hardcoded_strings_lint: ^1.0.1

Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:hardcoded_strings_lint/hardcoded_strings_lint.dart';
7
likes
0
points
707
downloads

Publisher

unverified uploader

Weekly Downloads

A custom Flutter lint rule that identifies and prevents hardcoded strings in widget constructors, promoting better internationalization practices and code maintainability.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, analyzer_plugin, custom_lint_builder

More

Packages that depend on hardcoded_strings_lint