lindi 0.3.0
lindi: ^0.3.0 copied to clipboard
Lindi is a lightweight and reactive state management library for Flutter that simplifies building applications with dynamic UI updates.
0.3.0 #
Removed
- Removed
LindiInjector.
Added
- Added
LinditoinjectandgetLindiViewModel instances, simpler and more straightforward
Lindi.inject([CounterLindiViewModel()...]);
.
.
final counterViewModel = Lindi.get<CounterLindiViewModel>();
0.2.0 #
Removed
- Removed
LindiMultiBuilder, now you can useLindiBuilderfor single and multiple viewModels.
Added
- Added
listenersto LindiBuilder a callback function that listen when theviewModelupdates. - Added
hasDatato check if a viewModel have data. - Added
unregister<T>()to unregister a specific instance ofLindiViewModelfrom LindiInjector.
Changed
- Changed
viewModelparameter toviewModelsnow can accept list ofLindiViewModel.
0.1.1 #
Added
- Unit tests for
LindiViewModel,LindiBuilder,LindiMultiBuilder,LindiInjector,LindiException.
0.1.0 #
Added
- Initial release of
LindiViewModel<D, E>. - Implemented
setLoading(),setData(D data), andsetError(E error)methods.
0.0.1 #
- Publish