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

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/main.dart';
8
likes
160
points
3.15k
downloads

Documentation

API reference

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

MIT (license)

Dependencies

analysis_server_plugin, analyzer, analyzer_plugin

More

Packages that depend on hardcoded_strings_lint