Skip to content

Commit 5ce1b8b

Browse files
committed
fix: add missing autofillHints to AFTextField to fix build error
1 parent bbe886f commit 5ce1b8b

File tree

1 file changed

+5
-0
lines changed
  • frontend/appflowy_flutter/packages/appflowy_ui/lib/src/component/textfield

1 file changed

+5
-0
lines changed

frontend/appflowy_flutter/packages/appflowy_ui/lib/src/component/textfield/textfield.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)