fix glob format

This commit is contained in:
Chris Watson
2025-04-17 13:53:29 -06:00
parent 5125f271f2
commit 8fe9254c05
236 changed files with 253 additions and 244 deletions
+1 -1
View File
@@ -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.