- fix for escamoteur#13
- fix for escamoteur#8
- Removed possibly unnecessary reset of the watches on update of the widgets. If you experience any strange behaviour with this version, please let me know
- Added new function to rebuild a widget as soon as a GetIt-Scope changed
As it is possible that objects registered in a higher GetIt-Scope can shadow objects of the same registration type in a lower scope it is important to ensure that the UI can update its references to the newly active object (the one last registered). The get_it_mixin detects such changes and updates them on the next rebuild but if you want to ensure that this happens immediately you can put a call to
/// Will triger a rebuild of the Widget if any new GetIt-Scope is pushed or popped
/// This function will return `true` if the change was a push otherwise `false`
/// If no change has happend the return value will be null
bool? rebuildOnScopeChanges();
- Major version bump because get_it V7.0.0 is a breaking change
- Switched internal structure from LinkedList to List because of dart-lang/sdk#45767 which made the package unusable on web
- Added option to watch any ValueListenable with
watch(target:)
- Null safety migration
- fixed bug that you couldn't use
watchOnly
andwatchXonly
more than once on the sameListenable
object. - split source into several part files.
- Refactoring and corrected cancelation of futures
- Bug fix for Hot reload and added a warning in the readme
- the previous implementation of
allReady()
would have calledGetIt.allReady
on every build which would return every time a new Future so that it did rebuild unpredictable
- deprecated
registerValueListenableHandler
in favour ofregisterHandler
- some breaking changes of the handler function definitions
- added support for
allReady
and isReady
- now with readme and tests
- Initial release without docs and tests