Skip to main content

design_token_lints 0.2.1 copy "design_token_lints: ^0.2.1" to clipboard
design_token_lints: ^0.2.1 copied to clipboard

Enforce your Flutter design system: flag raw colors, magic spacing, inline text styles and off-system widgets, auto-fix to your own tokens, and measure design-system coverage.

example/lib/main.dart

import 'package:acme_shop/screens/checkout.dart';
import 'package:acme_shop/screens/legacy_checkout.dart';
import 'package:material_ui/material_ui.dart';

void main() => runApp(const AcmeShop());

/// Shows both checkout screens side by side.
class AcmeShop extends StatelessWidget {
  const AcmeShop({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Scaffold(
        body: SafeArea(
          child: Row(
            children: [
              Expanded(child: Checkout()),
              Expanded(child: LegacyCheckout()),
            ],
          ),
        ),
      ),
    );
  }
}
1
likes
0
points
337
downloads

Documentation

Documentation

Publisher

verified publisherashitanema.dev

Weekly Downloads

Enforce your Flutter design system: flag raw colors, magic spacing, inline text styles and off-system widgets, auto-fix to your own tokens, and measure design-system coverage.

Repository (GitHub)
View/report issues

Topics

#lints #design-system #design-tokens #analyzer-plugin #flutter

License

unknown (license)

Dependencies

analysis_server_plugin, analyzer, analyzer_plugin, args, glob, path, yaml

More

Packages that depend on design_token_lints