flutter_custom_form_component
I have some custom UI components which supporting form on a page. You can use my existing components that help users typing on a field, i.e.:
BankCardNumberFieldWidget
CodeFieldWidget
DdMmYyyyFieldWidget
MmDdYyyyFieldWidget
YyyyDdMmFieldWidget
YyyyMmDdFieldWidget
MoneyFieldWidget
NameFieldWidget
PhoneNumberFieldWidget
RegistrationNumberFieldWidget
Getting Started
Add flutter_custom_form_component
dependency to your pubspec.yaml
.
dependencies:
flutter_custom_form_component: ^0.0.25
Date field supports MMDDYYYY format.
SizedBox(
child: MmDdYyyyFieldWidget(
/// Optional. It has default value.
hint: 'MM / DD / YYYY',
/// Optional. For your own validation logic.
isValid: true,
/// Optional
onChanged: (final int? year, final int? month, final int? day) {
/// You can get the values here.
},
/// Optional. It has default value.
separator: ' / '),
/// Wrap the height.
height: 52.0,
)
Money field supports symbol, thousand separator and decimal.
SizedBox(
child: MoneyFieldWidget(
/// Optional
hint: '\$ 0.0',
/// Optional. It has default value.
isUsingPeriodInThousand: true,
/// Optional
onChanged: (final double? value) {
/// You can get the values here.
},
/// Optional
symbol: '\$ '),
/// Wrap the height.
height: 52.0,
)
Bank card number field supports separator.
SizedBox(
child: BankCardNumberFieldWidget(
/// Optional
hint: '0000 - 0000 - 0000 - 0000',
/// Optional
onChanged: (final String value) {
/// You can get the values here.
},
/// Optional. It has default value.
separator: ' - '),
/// Wrap the height.
height: 52.0,
)
Libraries
- flutter_custom_form_component
- flutter_custom_form_component_web
- widget/const
- widget/field/bank_card_number/formatter
- widget/field/bank_card_number/widget
- widget/field/box_decorations
- widget/field/code/widget
- widget/field/date/224/ddmmyyyy
- widget/field/date/224/formatter
- widget/field/date/224/mmddyyyy
- widget/field/date/422/formatter
- widget/field/date/422/yyyyddmm
- widget/field/date/422/yyyymmdd
- widget/field/date/formatter
- widget/field/date/mixin
- widget/field/mixin
- widget/field/money/formatter
- widget/field/money/widget
- widget/field/name/widget
- widget/field/one_value/mixin
- widget/field/one_value/widget
- widget/field/phone_number/formatter
- widget/field/phone_number/widget
- widget/field/registration_number/widget
- widget/field/text_styles
- widget/field/widget
- widget/page