mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-30 23:04:59 +08:00
rename to deprecated
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
---
|
||||
description: Applies Flutter best practices and coding guidelines to the core directory, focusing on constants, themes, utilities, and widgets.
|
||||
globs: lib/core/**/*.*
|
||||
---
|
||||
- Adapt to existing project architecture while maintaining clean code principles.
|
||||
- Use Flutter 3.x features and Material 3 design.
|
||||
- Implement proper null safety practices.
|
||||
- Follow proper naming conventions.
|
||||
- Use proper widget composition.
|
||||
- Keep widgets small and focused.
|
||||
- Use const constructors when possible.
|
||||
- Implement proper widget keys.
|
||||
- Follow proper layout principles.
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
---
|
||||
description: Enforces clean architecture, BLoC pattern, and state management principles within Flutter feature modules.
|
||||
globs: lib/features/**/*.*
|
||||
---
|
||||
- Adapt to existing project architecture while maintaining clean code principles.
|
||||
- Use Flutter 3.x features and Material 3 design.
|
||||
- Implement clean architecture with BLoC pattern.
|
||||
- Follow proper state management principles.
|
||||
- Use proper dependency injection.
|
||||
- Implement proper error handling.
|
||||
- Follow proper state management with BLoC.
|
||||
- Implement proper dependency injection using GetIt.
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
---
|
||||
description: Applies general Flutter best practices across the entire project, focusing on architecture, design, and code quality.
|
||||
globs: lib/**/*.*
|
||||
---
|
||||
- Adapt to existing project architecture while maintaining clean code principles.
|
||||
- Use Flutter 3.x features and Material 3 design.
|
||||
- Implement clean architecture with BLoC pattern.
|
||||
- Follow proper state management principles.
|
||||
- Use proper dependency injection.
|
||||
- Implement proper error handling.
|
||||
- Follow platform-specific design guidelines.
|
||||
- Use proper localization techniques.
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
---
|
||||
description: Provides performance-related guidelines for Flutter development, including image caching, list view optimization, and memory management.
|
||||
globs: lib/**/*.*
|
||||
---
|
||||
- Use proper image caching.
|
||||
- Implement proper list view optimization.
|
||||
- Use proper build methods optimization.
|
||||
- Follow proper state management patterns.
|
||||
- Implement proper memory management.
|
||||
- Use proper platform channels when needed.
|
||||
- Follow proper compilation optimization techniques.
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
---
|
||||
description: Focuses on UI-related rules within Flutter feature's presentation layer, including BLoC, pages, and widgets.
|
||||
globs: lib/features/**/presentation/**/*.*
|
||||
---
|
||||
- Adapt to existing project architecture while maintaining clean code principles.
|
||||
- Use Flutter 3.x features and Material 3 design.
|
||||
- Follow proper widget composition.
|
||||
- Keep widgets small and focused.
|
||||
- Implement proper routing using GoRouter.
|
||||
- Use proper form validation.
|
||||
- Implement proper error boundaries.
|
||||
- Follow proper accessibility guidelines.
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
---
|
||||
description: Specifies testing guidelines for Flutter projects, covering unit, widget, and integration tests.
|
||||
globs: test/**/*.*
|
||||
---
|
||||
- Write unit tests for business logic.
|
||||
- Implement widget tests for UI components.
|
||||
- Use integration tests for feature testing.
|
||||
- Implement proper mocking strategies.
|
||||
- Use proper test coverage tools.
|
||||
- Follow proper test naming conventions.
|
||||
- Implement proper CI/CD testing.
|
||||
Reference in New Issue
Block a user