mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-30 23:04:59 +08:00
fix glob format
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
description: Enforces Riverpod library best practices for Flutter applications. This rule provides guidance on code organization, performance, testing, and common pitfalls when using Riverpod.
|
||||
globs: **/*.dart
|
||||
globs: *.dart
|
||||
---
|
||||
- **Core Principles:**
|
||||
- **Provider Initialization:** Avoid initializing providers within widgets. Providers should initialize themselves, managing their own state and dependencies independently. This ensures proper lifecycle management and prevents unexpected behavior during widget rebuilds. Specifically, do not initialize providers inside `build()` methods or widget constructors.
|
||||
|
||||
Reference in New Issue
Block a user