design_system_lints 0.1.0 copy "design_system_lints: ^0.1.0" to clipboard
design_system_lints: ^0.1.0 copied to clipboard

A collection of lints and code edits to enforce UI standards within a codebase. Built with Sidecar.

example/lib/main.dart

import 'package:design_system_annotations/design_system_annotations.dart';
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      // Lints will appear over new creations of theme
      theme: ThemeData(
        accentColor: Colors.black,
      ),
    );
  }
}

class DesignApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: MyCustomTheme.light,
    );
  }
}

@designSystem
class MyCustomTheme {
  static final light = ThemeData(
    primaryColor: primary,
    hoverColor: white,
  );

  static const primary = Colors.blue;
  static const white = Colors.white;
}
8
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A collection of lints and code edits to enforce UI standards within a codebase. Built with Sidecar.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, sidecar

More

Packages that depend on design_system_lints