Pequeno estudo sobre o componente Riverpod
//! Riverpod set up
ProviderScope
//! Easy level
State Provider
ConsumerWidget
ref.watch(riverpod)
ref.read(riverppod.notifier).state
//! Hard level (with model)
ChangeNotifierProvider
ChangeNotifier
notifyListeners
ConsumerWidget
ref.watch(riverpod).name
ref.read(riverpod).changeName(newValue)
- flutter sdk: '>=3.2.6 <4.0.0'
- flutter_riverpod: ^2.4.10
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.