Skip to main content

pervice 1.3.1 copy "pervice: ^1.3.1" to clipboard
pervice: ^1.3.1 copied to clipboard

A Flutter-native MVVM service layer that creates, loads, watches, shares, and disposes services according to the widget lifecycle.

1.0.0 #

  • Initial release of Pervice.
  • Successor to mvvm_service.
  • Redesigned around Flutter widget lifecycle and providerless services.

1.1.0 #

  • Added Service.request() for one-time data requests that require a result.
  • Added Service.requestOrNull() for one-time data requests with an optional result.

1.2.0 #

  • Breaking: Changed Service.canRethrow to true by default, so loading errors are rethrown unless explicitly disabled.
  • Breaking: Renamed Service.notifyUpdated() to Service.notifyChanged().
  • Breaking: Removed Service.canDebugPrint and automatic error logging.
  • Made vsync optional in useTabController() and useAnimationController(), using useTickerProvider() when omitted.

1.2.0+1 #

  • Breaking: Renamed Service.isError to Service.hasError.
  • Updated the README and example to use the current service API.
  • Corrected the README's error handling documentation to reflect rethrowing errors by default and the removal of automatic error logging.
  • Changed Service.requestOrNull() to return null instead of rethrowing loading errors.
  • Updated useTickerProvider() to reuse a single ticker provider within the same widget, including animation hooks that omit vsync.

1.3.0 #

  • Added BuildContext.setState() to request a rebuild of the current widget or the nearest ancestor of a specified widget type, with an optional callback.
  • Added BuildContext.onInitState() and BuildContext.onDispose() for one-time initialization and cleanup callbacks tied to the calling widget lifecycle.

1.3.1 #

  • Restored Service.canRethrow to false by default.
2
likes
0
points
991
downloads

Publisher

verified publisherttangkong.dev

Weekly Downloads

A Flutter-native MVVM service layer that creates, loads, watches, shares, and disposes services according to the widget lifecycle.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

equatable, flutter

More

Packages that depend on pervice