get_it_listenable_widget 0.1.0 copy "get_it_listenable_widget: ^0.1.0" to clipboard
get_it_listenable_widget: ^0.1.0 copied to clipboard

A ListenableWidget that resolves its ViewModel from GetIt, with optional factory params.

0.1.0 #

  • Initial release.
  • GetItListenableWidget<VM, P1, P2> — a ListenableWidget that resolves its ViewModel from GetIt, forwarding param1 / param2 / instanceName and supporting a custom GetIt instance.
  • GetItListenableWidgetBuilder<VM, P1, P2> — inline builder variant.
  • autoDispose defaults to true (widget owns the ViewModel); pass false for shared singletons.
  • assignContext controls whether the widget assigns its BuildContext to ViewModel.context. Defaults to autoDispose, so shared singletons do not have their context overwritten; pass it explicitly to override.
1
likes
160
points
57
downloads

Documentation

API reference

Publisher

verified publisherveenstra.dev

Weekly Downloads

A ListenableWidget that resolves its ViewModel from GetIt, with optional factory params.

Homepage
Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter, get_it, listenable_widget

More

Packages that depend on get_it_listenable_widget