live_cell_widgets 0.15.0
live_cell_widgets: ^0.15.0 copied to clipboard
Provides wrappers over Flutter widgets which allow the properties of the widgets to be controlled by ValueCell's
0.15.0 #
New Features #
-
Live widgets wrappers now provide every constructor that is provided by the wrapped Flutter widgets.
For example, the
LiveFilledButtonwidget, which is a wrapper over Flutter'sFilledButtonnow also provides the.iconand.tonalconstructors in addition to the default constructor:LiveFilledButton.icon( icon: Icon(...), label: Text(...), press: pressActionCell )
Breaking Changes #
-
Removed
StaticWidgetReason: Doesn't interact well with inherited widgets
Replacement:
CellWidget -
Removed
CellHooksmixinReason:: It's obsolete since cells can be defined directly in the build method of a
CellWidgetReplacement: Define cells and watch functions directly in the build method/function of a
CellWidget -
Removed
bindmethods provided by Live widgetsReason: There are few use cases for it and it is difficult to implement for widgets that provide multiple constructors
Replacement: Crate a new widget using the
CellWidgetconstructor -
Live button widgets (
LiveFilledButton,LiveElevatedButton, etc.) now takeActionCells for thepressandlongPressarguments instead ofMetaCell<void>.Reason: This makes the button widgets easier to use
-
Minimum required Flutter version is now 3.29.3
0.14.1 #
- Fix issue with widgets not updating if triggered by cell changes during build phase.
0.14.0 #
- Bump major version since widgets library now requires Flutter 3.29.2
0.13.1 #
- Increase
live_cells_coreversion to1.1.0. - Deprecate
StaticWidget.
0.13.0 #
- Remove deprecated widgets library.
- Increase
live_cells_coreversion to1.0.0.
0.12.5 #
Increase live_cells_core version to 0.25.0.
0.12.4 #
- Fix issue with cell state restoration.
0.12.3 #
- Fix typos in README.
0.12.2 #
- Update README.
0.12.1 #
- Fix typos in changelog.
0.12.0 #
Breaking changes:
-
The minimum Flutter version has been increased to 3.24.3.
-
The
live_cells_widgetslibrary is deprecated. Use thelive_cells_uilibrary. -
The
live_cells_uilibrary provides the same functionality aslive_cells_widgetswith the following differences:-
The widgets are prefixed with
Liveinstead ofCell, e.g.LiveTextFieldfromlive_cells_uiis the equivalent toCellTextFieldfromlive_cell_widgets -
Only those properties which represent user input are cells, the rest are regular values. For example in
LiveSwitchonly thevalueandenabledproperties are cells. -
live_cells_uidoes not provide wrappers for widgets which do not take input from the user, for example there is noLiveTextequivalent toCellText. Wrap a regularTextwidget in aCellWidget.builderor aCellWidgetsubclass for reactivity.
-
0.11.0 #
- Update
live_cells_coredependency to 0.24.0 - Update widget wrappers to Flutter 3.24.3
0.10.1 #
New widgets:
CellCheckboxMenuButtonCellCheckboxThemeCellChipThemeCellColoredBoxCellColoredFilterCellCheckedPopupMenuItemCellChoiceChipCellCloseButtonCellContraintsTransformBox
0.10.0 #
New features:
-
Watch functions can now be defined directly in the build method of a
CellWidgetwithoutCellHooks:CellWidget.builder((_) { final cell = MutableCell(...); ValueCell.watch(() { final c = cell(); ... }) ... });
0.9.0 #
New widgets:
-
CellPageViewA
PageViewwith the current page controlled by apagecell:final page = MutableCell(0); return CellPageView( page: page, animate: true.cell duration: Duration(milliseconds: 100).cell, curves: Curves.easeIn.cell children: [ Page1(), Page2(), ... ].cell );The current page can be changed by setting the
pagecell.page.value = 2;The current page can also be observed by observing the same
pagecell.
0.8.2 #
- Increase
live_cells_coreversion to0.22.0
0.8.1 #
- Increase
live_cells_coreversion to0.21.0
0.8.0 #
New widgets:
CellBannerCellBlockSemanticsCellVisibility
0.7.0 #
Breaking Changes:
-
Rename
onPressedandonLongPressof cell Material buttons topressandlongPress, respectively.The purpose of this change, is to later allow callback based event handlers to be added using
onPressedandonLongPress
Bug Fixes:
- Fix bug with exception handling in
toWidget().
0.6.0 #
New widgets:
CellElevatedButtonCellFilledButtonCellOutlinedButtonCellTextButton
0.5.0 #
New features:
-
Automatic key generation for unkeyed cells defined in the
buildmethod ofCellWidgetandCellWidget.builder.This allows cells local to a
CellWidgetto 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:
-
CellInitializerhas been renamed toCellHooks -
.cell()and.watch()have been moved fromBuildContexttoCellHookContext.This will not affect code that uses
CellWidget.builder. -
State restoration options have been removed from
.cell(). Use.restore()instead.
0.4.0 #
New widgets:
CellAbsorbPointerCellAnimatedCrossFadeCellAnimatedFractionallySizedBoxCellAnimatedPositionedDirectionalCellAnimatedRotationCellAnimatedScaleCellAnimatedSlideCellAnimatedSwitcherCellAnnotatedRegion
Other changes:
- Minimum core dependency version updated to
0.16.0 - Removed deprecated methods and
RestorableCellWidget
0.3.2 #
- Update
live_cells_coredependency version to0.15.0
0.3.1 #
- Update
live_cells_coredependency version to0.14.0
0.3.0 #
- Improvements to
CellWidget:- Unused dependencies are untracked.
- Widget properties can now be bound to different cells between builds.
0.2.2 #
- Increase core dependency version to 0.12.3
0.2.1 #
- Relax live_cells_core dependency version constraint.
0.2.0 #
-
Simplified state restoration:
- No need to use
RestorableCellWidget - Add
restorationIddirectly onCellWidget/StaticWidget. - Added
.restore()method for cell state restoration inStaticWidget
- No need to use
New Widgets:
CellRowCellColumn
0.1.1 #
- Fix bug with StaticWidget.builder
0.1.0 #
- Move widget wrapper classes from
live_cellspackage to this package.