flutter_design_guard 0.0.1 copy "flutter_design_guard: ^0.0.1" to clipboard
flutter_design_guard: ^0.0.1 copied to clipboard

Custom lint rules for Flutter that enforce design-system widgets, theme colors, typography, spacing, and UI standards.

example/lib/main.dart

import 'package:flutter/material.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Column(
          children: [
            // expect_lint: avoid_native_text_field
            const TextField(),

            // expect_lint: avoid_native_text_field
            TextFormField(),

            const CustomTextField(),
          ],
        ),
      ),
    );
  }
}

/// Represents the application's approved design-system text field.
class CustomTextField extends StatelessWidget {
  const CustomTextField({super.key});

  @override
  Widget build(BuildContext context) {
    return const SizedBox();
  }
}
4
likes
0
points
336
downloads

Publisher

unverified uploader

Weekly Downloads

Custom lint rules for Flutter that enforce design-system widgets, theme colors, typography, spacing, and UI standards.

Repository (GitHub)
View/report issues

Topics

#flutter #lint #custom-lint #design-system

License

unknown (license)

Dependencies

analyzer, analyzer_plugin, custom_lint_builder

More

Packages that depend on flutter_design_guard