provider
evanca/flutter-ai-rules
This comprehensive guide teaches the correct usage of the Flutter `provider` package for state management. It covers setting up various provider types (immutable, mutable, future, stream) and emphasizes best practices for consuming state safely using `context.watch`, `context.read`, and `Selector`. Learn how to use `ProxyProvider` for dependency injection and maintain robust, scalable Flutter applications.