model_editors 0.4.2 model_editors: ^0.4.2 copied to clipboard
Editors for complex models and lists inspired by simplicity of TextEditingController, without manual state management.
0.4.2 #
- Added
MaterialCheckbox
,MaterialCheckboxWithText
. - Exported
CapsuleWidget
.
0.4.1 #
- Added
AnimatedBuilder
intoEnumDropdownButton
.
0.4.0 #
- BREAKING: Changed the signature of
ModelViewOrEditRawWidget
callbacks. CollectionEditingController.addEmpty
,ListEditingController.add
, andMapEditingController.add
now return the added controller.- Added
MapEditingController.keys
getter. - Added
CollectionAddButtonBuilder.isEnabled
callback to override the default check of item count. - Added
FixedHeaderWidget
. - Fixed
EditorController.save()
not rethrowing a throwable after printing it. - Fixed the direction of an arrow on
DefaultDeleteThisAndAfterButton
.
0.3.1 #
- Added
ReorderableCollectionEditor.showDeleteThisAndAfterButtons
,DefaultDeleteThisAndAfterButton
.
0.3.0 #
- BREAKING: Renamed
AbstractListEditingController
toListEditingController
, changed its abstractcreateController
method to a property. - BREAKING: Deleted
ListEditingController.sortValues
. Add some kind ofsortedValue
if needed. - BREAKING:
ReorderableListViewEditor
renamed toReorderableCollectionEditor
. - BREAKING:
ListAddButtonBuilder
renamed toCollectionAddButtonBuilder
. - BREAKING: Require Dart 2.17 & Flutter 3.0.
- Added the abstract
CollectionEditingController
. - Added
MapEditingController
,ReorderableMapEditor
. - Added
CollectionEditingController.isReorderable
, defaults totrue
. - Added
ModelViewOrEditWidget
,ModelViewOrEditRawWidget
. - Added
EnumDropdownButton
. - Added
DefaultAddButton
. CollectionAddButtonBuilder.enabledBuilder
is optional and defaults toDefaultAddButton
.
0.2.0 #
- BREAKING:
AbstractListEditingController
requires non-nullvalue
. - Re-licensed under MIT No Contribution.
- Uses
total_lints
.
0.1.6 #
- Add
ReorderableListViewEditor.itemWrapper
as a workaround for https://github.com/flutter/flutter/issues/88570.
0.1.5 #
- Add
WrapListEditor
widget.
0.1.4 #
- Add
AbstractListEditingController.notifyOnItemChanges
. - In
AbstractListEditingController
, firenotifyChanges()
on item changes by default.
0.1.3 #
In ReorderableListViewEditor
:
- Use
NeverScrollableScrollPhysics
ifshrinkWrap == true
. - Change mouse cursor over drag handles.
- Hide drag handle for less than two items.
0.1.2 #
- BREAKING: Renamed
AbstractListEditingController.nonNullItems
tononNullValues
.
0.1.1 #
- Added code docs.
- BREAKING:
AbstractListEditingController.minLength
is non-null.
0.1.0 #
- Initial release.