mvvm_service 1.1.2 copy "mvvm_service: ^1.1.2" to clipboard
mvvm_service: ^1.1.2 copied to clipboard

A Flutter-native service layer inspired by the MVVM pattern, managing services according to the widget lifecycle, without relying on Provider or Riverpod.

1.0.0 #

  • Initial version.

1.0.1 #

  • Modified ServiceBuilder<T> to automatically load its service only if it hasn't been initialized yet.

1.0.2 #

  • Fixed an issue where services could not be referenced due to incorrect generic type handling.

1.1.0 #

  • Added ServiceWhen<T> extension on services to declaratively build widgets based on their current state.

  • Updated ServiceBuilder<T> to dispose its Service instance when the widget is disposed if it fully owns the service.

1.1.1 #

  • Added ServiceWidgetOf, a widget that allows referencing an existing service from the widget tree. This widget is useful when a service has already been initialized and managed by an ancestor widget, allowing descendant widgets to access and rebuild in response to service updates without creating a new instance.

1.1.2 #

  • Fixed the issue where ServiceWidget<T> and ServiceWidgetOf<T> could not correctly reference an ancestor service due to ServiceProvider not having an explicit generic type, ensuring descendant widgets can now access the service with the proper type.
0
likes
160
points
53
downloads

Publisher

verified publisherttangkong.dev

Weekly Downloads

A Flutter-native service layer inspired by the MVVM pattern, managing services according to the widget lifecycle, without relying on Provider or Riverpod.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on mvvm_service