flutter_form_fields 0.0.2
flutter_form_fields: ^0.0.2 copied to clipboard
Custom widgets to help developers create input fields with validations that are not available in flutter sdk.
This package provides devlopers a variety of Custom Widgets that can be used with Form.
Features #
It contains RadioFormField Widgetthat can be used in the Form. It has validation function which can help developer to display error Text if input is not satisfied by the function. By Default Flutter sdk doesn't povide validation Feature on Radio Widget.
Getting started #
Add flutter_form_fields under dependencies in pubspec.yalm file.
Usage #
ValueNotifier<String> radioValue = ValueNotifier<String>('');
RadioFormField(
radioValue: radioValue,
validator: (val) {
if (radioValue.value == '') {
return "Please Select at least one option";
}
return null;
},
),
const Text(
"Hint Text Here?",
),
Additional information #
See example section to see more about using this package.