forme 3.0.0-beta
forme: ^3.0.0-beta copied to clipboard
a powerful flutter form widget ,easy to use and extend. provide rich api to simplify form control and sync|async validation
2.5.3 #
BaseValueFieldsupportquietlyValidateFormeControlleraddfieldListenablemethod , used to listen field's initial and dispose
2.5.2 #
FormeController'svalidatemethod supportclearErrorandvalidateByOrderparams. ifclearErroris true , field error will be cleared before validate. ifvalidateByOrderis true , will only validate one field at a time , and break validation chain if any field validate not passed or failed
2.5.1 #
- add
autovalidateByOrderonForme,support validate form fields by order , and stop validate further if validate failed - add a nullable attribute
orderonBaseValueField Future<Map<FormeValueFieldController, String>> validate({bool quietly = false})changed toFuture<FormeValidateSnapshot> validate({bool quietly = false, Set<String> names = const {}})Future<String?>? validate({bool quietly = false})changed toFuture<FormeFieldValidateSnapshot<T>> validate({bool quietly = false})- add
isValueChangedmethod onFormeController, used to check whether form data changed after initialed
2.5.0 #
- remove
onValueChanged,onErrorChanged,onFocusChanged,onInitialed,validator,autovalidateModeonField, they are moved toFormeFieldListener,validatoris renamed toonValidate - support
onAsyncValidateandasyncValidatorDebounceonFormeValueFieldListenerto support async validate - remove
fieldListenablefromFormeFieldController - remove
lazyFieldListenablefromFormeKey ValueFieldis not aFormFieldany more- you can create a nonnull or nullable
ValueFieldbyValueField's generic type , eg:ValueField<String>is nonnull , butValueField<String?>is nullable - remove
clearValuefromFormeValueFieldController - support 'autovalidateMode' on
Forme
2.1.2 #
- remove
buildTextSpanfromFormeTextFieldController, it cannot be compiled success before flutter 2.2.2
2.1.1 #
- bug fix: can't get current field error in onValueChanged
FormeSingleSwitch&FormeListTilealways use material switchFormeValidatesaddrangeandequalsvaidator
2.1.0 #
- remove
Cupertinofields ,they will be moved to another package FormeSliderandFormeRangeSliderwill perform validate in onChangeEnd ,not in onChangeFormeTextField's controller can be cast toFormeTextController, setTextEditingValueandSelectionis easily via this controllerFormeValueFieldControllersupportnextFocus, used to focus next focusable widget- remove
beforeUpdateModelfromAbstractFieldState, you can do some logic inafterUpdateModel AbstractFieldState's didUpdateWidget will callafterUpdateModelby default- bug fix
2.0.4+1 #
- bug fix: timer in
FormeRawAutocompletewill be cancelled in dispose !
2.0.4 #
- add
modelListenableonFormeFieldController - after value changed , you can get old value via
FormeValueFieldController'soldValue - validate method add parameter
notify, used to determine whether triggererrorListenable FormeAsnycAutocompleteChipModelsupportmaxandexceedCallback.
2.0.3+1 #
- bug fix: readOnlyNotifier will be disposed !
2.0.3 #
- fields add
InputDecorationandmaxLinesproperties , used to quickly specific labelText or others - add
FormeAsyncAutocompleteChip
2.0.2 #
- add
FormeAutocompleteText - add
FormeAsyncAutocompleteText
2.0.1 #
- StatefulField support
onInitialed, used to listenFormeFieldControllerinitialed - add
FormeValidateUtils - bug fix : onErrorChanged and errorTextListenable not triggered in build
2.0.0 #
forme is completely rewrite version of https://pub.dev/packages/form_builder much more powerful and won't break your layout