Releases: alex-gutev/live_cells
v0.17.0
New features:
-
Automatic key generation for cells without keys defined in the
build
method ofCellWidget
and
CellWidget.builder
.This allows cells local to a
CellWidget
to be defined directly in the build method/function
without having to use.cell(() => ...)
With version 0.4.0:
class Example extends CellWidget with CellInitializer { @override Widget build(BuildContext context) { final count = cell(() => MutableCell(0)); ... } }
This can now be simplified to the following with version 0.5.0:
class Example extends CellWidget { @override Widget build(BuildContext context) { final count = MutableCell(0); ... } }
Breaking Changes:
-
CellInitializer
has been renamed toCellHooks
-
.cell()
and.watch()
have been moved fromBuildContext
toCellHookContext
.This will not affect code that uses
CellWidget.builder
. -
State restoration options have been removed from
.cell()
. Use.restore()
instead.
v0.16.0
New features from core:
-
and()
,or()
andnot()
now return keyed cells. -
The following methods for waiting for changes in cell values:
.nextChange()
.untilValue()
.untilTrue()
.untilFalse()
-
ActionCell
A cell without a value, used solely to represent actions and events.
New widgets:
CellAbsorbPointer
CellAnimatedCrossFade
CellAnimatedFractionallySizedBox
CellAnimatedPositionedDirectional
CellAnimatedRotation
CellAnimatedScale
CellAnimatedSlide
CellAnimatedSwitcher
CellAnnotatedRegion
Other changes:
- Removed deprecated
computeCell
andcomputeWidget
extension methods onList
- Removed deprecated
RestorableCellWidget
v0.12.1
New features in core:
-
Record extension methods for creating lightweight computed (and mutable computed) cells:
(a, b).apply((a,b) => a + b); (a, b).mutableApply((a,b) => a + b, (v) {...});
-
changesOnly
option in cell constructors. When this option is set to true, the cell only
notifies its observers when its value has actually changed. -
Relaxed restriction that
MutableCellView
only accept a single argument -
Extensions which allow Iterable, List, Map and Set methods and properties to be used directly on
cells:
New features in widgets library:
-
Simplified state restoration:
- No need to use
RestorableCellWidget
- Add
restorationId
directly onCellWidget
/StaticWidget
. - Added
.restore()
method for cell state restoration inStaticWidget
- No need to use
-
New Widgets:
CellRow
CellColumn
v0.11.0
This release divides the functionality of this package among component packages:
Additionally the full documentation is now available at: https://docs.page/alex-gutev/live_cells.
New Features:
- Wrapper classes for more widgets
.peek
property for accessing the value of a cell without triggering a recomputation
Breaking Changes:
- Minimum SDK version increased to 3.0.0
- All properties of the widgets provided by
live_cell_widgets
are now cells
v0.9.0
New features:
- Constant
bool
,null
,Enum
andDuration
cells can now be created with thecell
property,
e.g.true.cell
. - Utilities for working with cells holding a
Duration
. CellObserverModel
for creating classes which observe one or more cells- Add
selection
cell parameter toCellTextField
constructor for observing and controlling the
field's selection.
v0.8.0
New features:
- Ability to access the previous values of cells with
.previous
- Ability to abort a cell value update with
ValueCell.none()
and
,or
,not
andselect
methods on bool cells- Exception handling using
onError
anderror
- Clarified how exceptions are propagated between cells
v0.7.0
New features:
ValueCell.watch
andCellInitializer.watch
for calling a function whenever the values of cells
change.- State restoration of cells with
RestorableCellWidget