File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
frontend/appflowy_flutter/packages/appflowy_ui/lib/src/component/textfield Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ class AFTextField extends StatefulWidget {
3434 this .focusNode,
3535 this .readOnly = false ,
3636 this .maxLength,
37+ this .autofillHints,
3738 });
3839
3940 /// The hint text to display when the text field is empty.
@@ -87,6 +88,9 @@ class AFTextField extends StatefulWidget {
8788 /// The maximum length of the text field.
8889 final int ? maxLength;
8990
91+ /// The autofill hints for the text field.
92+ final Iterable <String >? autofillHints;
93+
9094 @override
9195 State <AFTextField > createState () => _AFTextFieldState ();
9296}
@@ -188,6 +192,7 @@ class _AFTextFieldState extends AFTextFieldState {
188192 autofocus: widget.autoFocus ?? false ,
189193 maxLength: widget.maxLength,
190194 maxLengthEnforcement: MaxLengthEnforcement .truncateAfterCompositionEnds,
195+ autofillHints: widget.autofillHints,
191196 decoration: InputDecoration (
192197 hintText: widget.hintText,
193198 hintStyle: theme.textStyle.body.standard (
You can’t perform that action at this time.
0 commit comments