blaq_form 0.0.1
blaq_form: ^0.0.1 copied to clipboard
A composable, extensible Flutter forms package with prebuilt validations, adaptive field types, and a developer-first API.
Changelog #
0.0.1 #
Initial release.
Core #
BfFieldController<T>andBfFormController—ChangeNotifier-based controllers that own value, dirty/touched, and validation state. State-management agnostic (works withsetState, Riverpod, Bloc, or anyChangeNotifierconsumer).BfValidator<T>andBfAsyncValidator<T>with.and(),.or(),.when()composition.- Prebuilt validators on the
Bfnamespace:Bf.required(),Bf.email(),Bf.minLength(),Bf.maxLength(), and more. BfValidationContextandBfValidationResultfor cross-field and structured error reporting.
Fields #
- Text:
BfTextField(with.password()extension),BfOtpField,BfPhoneField,BfCurrencyField. - Selection:
BfDropdown,BfAutocomplete,BfCheckboxField,BfCheckboxGroupField,BfRadioGroupField,BfChipSelectField,BfSwitchField. - Numeric:
BfSliderField,BfRangeSliderField,BfRatingField. - Date/time:
BfDateField,BfDateRangeField. - Specialty:
BfSignatureField.
Form shell & layout #
BfForm,BfFormSection,BfFormRow,BfSubmitButtonwith auto-registration of descendant fields.BfFormBuilderfor fully declarative forms (zeroStatefulWidget, zero manualdispose).BfWizardmulti-step flow with per-step validation gating.
Theme & DX #
BfFormThemeThemeExtensionthat inherits from Material/Cupertino with overrides.BfLoggerwith configurable levels and colored console output.- Persistence helpers and field-key constants for type-safe identifiers.