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.