flutter disable text form field
TextFormField(
enabled: false, //Not clickable and not editable
readOnly: true, //Clickable and not editable
)
flutter disable text form field
TextFormField(
enabled: false, //Not clickable and not editable
readOnly: true, //Clickable and not editable
)
flutter pretext on textfield
TextField(controller: TextEditingController()..text = 'Your initial value')
flutter autocomplete
static const List<String> _kOptions = <String>[
'aardvark',
'bobcat',
'chameleon',
];
Autocomplete<String>(
optionsBuilder: (TextEditingValue textEditingValue) {
if (textEditingValue.text == '') {
return const Iterable<String>.empty();
}
return _kOptions.where((String option) {
return option.contains(textEditingValue.text.toLowerCase());
});
},
onSelected: (String selection) {
print('You just selected $selection');
},
)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us