maac_mvvm_with_riverpod 0.2.1 copy "maac_mvvm_with_riverpod: ^0.2.1" to clipboard
maac_mvvm_with_riverpod: ^0.2.1 copied to clipboard

maac_mvvm_with_riverpod is an extension package of maac_mvvm that is used with RiverPod.

maac_mvvm_with_riverpod #

pub package

An extension package that integrates MAAC's lifecycle management with the Riverpod state management library.


🚀 Key Features #

  • ConsumerViewModelWidget: A widget that combines ViewModelWidget with Riverpod's WidgetRef.
  • RiverViewModel: A base ViewModel class that is designed to hold and manage Riverpod state.

📖 Usage #

1. Define your ViewModel with Riverpod state #

class MyViewModel extends RiverViewModel<MyState> {
  MyViewModel({required super.uiState});
}

2. Use ConsumerViewModelWidget #

class MyPage extends ConsumerViewModelWidget<MyViewModel> {
  @override
  ProviderListenable<MyViewModel> viewModelProvider() => myViewModelProvider;

  @override
  Widget buildWidget(BuildContext context, WidgetRef ref, MyViewModel viewModel) {
    return Text('ViewModel integrated with Riverpod');
  }
}

🧭 Documentation #

For detailed API specifications, installation guides, and tutorials, please visit our centralized documentation hub:

👉 MAAC Documentation Hub

Specific Guides: #


🤝 Contributing #

Contributions are welcome! Please visit the main repository for more information.

1
likes
150
points
105
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

maac_mvvm_with_riverpod is an extension package of maac_mvvm that is used with RiverPod.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, flutter_hooks, hooks_riverpod, maac_mvvm, visibility_detector

More

Packages that depend on maac_mvvm_with_riverpod