Fix F-Droid repo search bugs (#1681)

This commit is contained in:
Imran Remtulla
2024-06-28 20:11:43 -04:00
parent f53a4f3827
commit 9b6b7780d8
2 changed files with 40 additions and 14 deletions

View File

@ -28,6 +28,7 @@ class GeneratedFormTextField extends GeneratedFormItem {
late String? hint;
late bool password;
late TextInputType? textInputType;
late List<String>? autoCompleteOptions;
GeneratedFormTextField(super.key,
{super.label,
@ -39,7 +40,8 @@ class GeneratedFormTextField extends GeneratedFormItem {
this.max = 1,
this.hint,
this.password = false,
this.textInputType});
this.textInputType,
this.autoCompleteOptions});
@override
String ensureType(val) {
@ -282,6 +284,7 @@ class _GeneratedFormState extends State<GeneratedForm> {
key: formFieldKey,
initialValue: values[formItem.key],
autovalidateMode: AutovalidateMode.onUserInteraction,
autofillHints: formItem.autoCompleteOptions,
onChanged: (value) {
setState(() {
values[formItem.key] = value;