widget_driver 0.4.0 copy "widget_driver: ^0.4.0" to clipboard
widget_driver: ^0.4.0 copied to clipboard

A Flutter presentation layer framework, which will clean up your widget code and make your widgets testable without a need for thousands of mock objects. Let's go driving!

CHANGELOG #

0.4.0 #

  • Updates the README.
  • Updates the order in which the DependencyResolver resolves dependencies.
  • Removes all TestDriver code creation when running release builds.

0.3.0 #

  • Changes name of DependencyProvider to DependencyResolver and adds support in it for resolving dependencies using the BuildContext.
  • Adds a didInitDriver method to the driver which is called one time per Driver lifecycle after the driver is fully initialized.

0.2.0 #

  • Refactors WidgetDriver to no longer get the BuildContext passed into via the constructor.
    Instead the driver now has an optional method called didUpdateBuildContext which is called once directly after the constructor. And then this method is called again if any inherited build context dependency did change.

0.1.0 #

  • Adds a new method which your drivers are forced to implement. This new method is didUpdateBuildContextDependencies and it is called by the framework if your driver has a dependency to an inherited widget from the build context and that dependency updates.

0.0.8 #

  • Adds a new helper class DependencyProvider to support with creating/resolving dependencies when needed directly into the widget.

0.0.7 #

  • Fixes issues with ignoring of state changes
  • enables new generated mixin from widget_driver_generator ^0.0.6

0.0.6 #

  • Adds EmptyDefault to ease testDriverValue creation

0.0.5 #

  • Updates to use latest version of annotations package which contains the new driverProvidableProperty annotations to support passing simple parameters directly into the driver.

0.0.4 #

  • Updates documentation to reflect the new driver annotation names.

0.0.3 #

  • Removes FlowCoordinators since it is currently not used. We will add this back if it ever becomes needed.
  • Adds missing unit tests to widget_driver code. Reached 100% test coverage!

0.0.2 #

  • Adds unit test for framework code

0.0.1 #

  • Initial release.
  • Adds support WidgetDrivers and DrivableWidgets.
  • Adds placeholder code for FlowCoordinators so that they can be easily added later.
  • Adds Example app which showcases how to use WidgetDrivers.
16
likes
140
points
1.26k
downloads

Publisher

verified publisherbmwtech.dev

Weekly Downloads

A Flutter presentation layer framework, which will clean up your widget code and make your widgets testable without a need for thousands of mock objects. Let's go driving!

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MIT (license)

Dependencies

flutter, meta, widget_driver_annotation

More

Packages that depend on widget_driver