maac_mvvm_with_get_it 0.2.2 copy "maac_mvvm_with_get_it: ^0.2.2" to clipboard
maac_mvvm_with_get_it: ^0.2.2 copied to clipboard

maac_mvvm_with_get_it is an extension package of maac_mvvm that is used with GetIt.

maac_mvvm_with_get_it #

pub package

An extension package that integrates MAAC with GetIt, allowing for automatic ViewModel resolution and dependency injection.


🚀 Key Features #

  • DependencyViewModelWidget: A widget that resolves its own ViewModel from GetIt.
  • Factory Scoping: Simplified ViewModel registration and lifecycle-aware resolution.

📖 Usage #

1. Register your ViewModel #

void setup() {
  registerViewModel(() => MyViewModel());
}

2. Use DependencyViewModelWidget #

class MyPage extends DependencyViewModelWidget<MyViewModel> {
  @override
  Widget build(BuildContext context, MyViewModel viewModel) {
    return Text('ViewModel is automatically resolved from GetIt');
  }
}

🧭 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.

3
likes
150
points
16
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

maac_mvvm_with_get_it is an extension package of maac_mvvm that is used with GetIt.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, get_it, maac_mvvm, visibility_detector

More

Packages that depend on maac_mvvm_with_get_it