design_token_lints 0.2.0
design_token_lints: ^0.2.0 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:flutter/material.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()),
],
),
),
),
);
}
}