hardcoded_strings_lint 1.0.3 copy "hardcoded_strings_lint: ^1.0.3" to clipboard
hardcoded_strings_lint: ^1.0.3 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

With Flutter:

 $ flutter 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.3

Alternatively, your editor might support dart pub get or flutter 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
160
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

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, analyzer_plugin, custom_lint_builder

More

Packages that depend on hardcoded_strings_lint