l10n_lint 1.0.0 copy "l10n_lint: ^1.0.0" to clipboard
l10n_lint: ^1.0.0 copied to clipboard

flutter l10n lint check if localization is initialized correctly and find string literal

example/lib/main.dart

import 'package:flutter/material.dart';

void main() {
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    // no expect_lint: avoid_string_literals_inside_widget
    return const Text('hard code string literals will not support l10n!');
  }
}
4
likes
160
points
1.26k
downloads

Publisher

verified publishermatheer.com

Weekly Downloads

flutter l10n lint check if localization is initialized correctly and find string literal

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, args, custom_lint_builder, custom_lint_core, file, glob, meta, path, pubspec_parse, yaml

More

Packages that depend on l10n_lint