Autocomplete product names

This commit is contained in:
2024-02-27 16:10:11 +03:00
parent c0bffe5ae2
commit c072d46dee
6 changed files with 99 additions and 43 deletions

View File

@@ -29,6 +29,7 @@ class CustomTextFormField extends StatelessWidget {
this.filled = true,
this.validator,
this.keyboardType,
this.onChanged,
this.onSaved,
}) : super(
key: key,
@@ -84,6 +85,8 @@ class CustomTextFormField extends StatelessWidget {
final void Function(String?)? onSaved;
final ValueChanged<String>? onChanged;
@override
Widget build(BuildContext context) {
return alignment != null
@@ -108,6 +111,7 @@ class CustomTextFormField extends StatelessWidget {
validator: validator,
keyboardType: keyboardType,
onSaved: onSaved,
onChanged: onChanged,
inputFormatters: inputFormatters,
initialValue: initialValue,
),