Skip to content

Releases: alex-gutev/live_cells

v0.17.0

04 Mar 20:08
Compare
Choose a tag to compare

New features:

  • Automatic key generation for cells without keys defined in the build method of CellWidget 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 to CellHooks

  • .cell() and .watch() have been moved from BuildContext to CellHookContext.

    This will not affect code that uses CellWidget.builder.

  • State restoration options have been removed from .cell(). Use .restore() instead.

v0.16.0

02 Mar 18:35
Compare
Choose a tag to compare

New features from core:

  • and(), or() and not() 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 and computeWidget extension methods on List
  • Removed deprecated RestorableCellWidget

v0.12.1

20 Feb 09:17
Compare
Choose a tag to compare

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 on CellWidget / StaticWidget.
    • Added .restore() method for cell state restoration in StaticWidget
  • New Widgets:

    • CellRow
    • CellColumn

v0.11.0

11 Feb 17:31
Compare
Choose a tag to compare

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

25 Jan 18:51
Compare
Choose a tag to compare

New features:

  • Constant bool, null, Enum and Duration cells can now be created with the cell 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 to CellTextField constructor for observing and controlling the
    field's selection.

v0.8.0

22 Jan 21:30
Compare
Choose a tag to compare

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 and select methods on bool cells
  • Exception handling using onError and error
  • Clarified how exceptions are propagated between cells

v0.7.0

18 Jan 19:05
Compare
Choose a tag to compare

New features:

  • ValueCell.watch and CellInitializer.watch for calling a function whenever the values of cells
    change.
  • State restoration of cells with RestorableCellWidget