live_cells 0.7.0 live_cells: ^0.7.0 copied to clipboard
A better way to manage state in Flutter applications
0.1.0 #
- Initial release.
0.1.1 #
- Fix package directory structure
0.1.2 #
- Fix dart doc issues
0.2.0 #
New features:
- Stronger guarantees that a
StoreCell
will not hold an outdated value - Shorthand
.cell
property for creating constant value cells - Shorthand
List.computeCell
method for creating multi-argument computational cells - Arithmetic and comparison operator overloads to create computational cells directly using expressions such as
a + b
Breaking changes:
ValueCell
is no longer aValueListenable
ValueCell.addListener
andValueCell.removeListener
are replaced withaddObserver
andremoveObserver
- New
CellObserver
interface for observing changes to the values of cells ValueCell.listenable
property provided to useValueCell
as aValueListenable
0.2.1 #
- Fix issues with examples in README
0.2.2 #
- Fix issue with List.computeCell method
- Fix issues with unit tests
0.2.3 #
- Fix issue with
CellTextField
0.3.0 #
New features:
- Mutable computational cells
- Batch updates
CellWidget
base class for creating widgets make use of cellsCellWidgetBuilder
for creatingCellWidget
's without subclassing- New widgets in widgets library:
CellCheckbox
CellCheckboxListTile
CellRadio
CellRadioListTile
CellSlider
CellSwitch
CellSwitchListTile
- Shorthand
List.computeWidget
method for creating widgets which depend on multiple cells
Breaking changes:
MutableCell
is now an interface with a factory constructorCellObserver
interface methods now take observed cell as arguments- Removed
CellBuilder
0.3.1 #
- Bug fixes
0.4.0 #
- Simplify implementation of
CellWidget
. Subclasses now overridebuild
instead ofbuildChild
.
0.4.1 #
- Bug fixes
0.5.0 #
New features:
ValueCell.computed
constructor for creating computed cells with dynamic dependenciesMutableCell.computed
constructor for creating mutable computed cells with dynamic dependenciesCellWidget
can now also track the cells it depends on at runtimemutableString
extension method onMutableCell
's holding anint
,double
,num
orstring
Breaking changes:
CellWidget.cell
method has been moved toCellListeners
mixinCellWidgetBuilder
has been removed in favour ofCellWidget.builder
constructor
Improvements:
- Simplified examples demonstrating core concepts only
- Simplified and streamlined API
- Improved README
- Bug fixes
0.5.1 #
- Fix typos and bugs in examples in README
0.5.2 #
- Fix potential issues
0.6.0 #
New features:
Maybe
type andMaybeCell
for error handlingerrorValue
argument ofmutableString
method to control value in case of errors during parsing- Remove restriction that arguments of mutable computed cells be mutable cells
Breaking changes:
- Add
shouldNotifyAlways
property toCellObserver
interface
Improvements and bug fixes:
- Simplify implementation of
CellInitializer.cell
- Allow updated cell value to be accessed even when the cell has no observers
- Fix bug in
BuildContext.cell
method - Fix bug in
CellTextField
0.6.1 #
- Fix potential issues
- Fix typos and improve README
0.7.0 #
New features:
ValueCell.watch
andCellInitializer.watch
for calling a function whenever the values of cells change.- State restoration of cells with
RestorableCellWidget