Skip to content

Commit 1fd5370

Browse files
Merge pull request #350 from Guy-Michael/form-field-fix-default-hint-values
set appropriate default hint values for GfFormField hint texts
2 parents 1337c01 + 6e4ae68 commit 1fd5370

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/components/form/form_field/widgets/gf_form_field.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,8 @@ class _GfFormFieldState extends State<GfFormField>
471471
gfprefixIcon: widget.iconPrefix,
472472
bgfilled: true,
473473
bgcolor: widget.backgroundcolor,
474-
hinttext: widget.hintText != null ? widget.hintText : 'Name',
474+
hinttext:
475+
widget.hintText != null ? widget.hintText : 'Password',
475476
),
476477
controller: textEditingController,
477478
fieldinitialValue: widget.initialValue,
@@ -539,7 +540,7 @@ class _GfFormFieldState extends State<GfFormField>
539540
gfprefixIcon: widget.iconPrefix,
540541
bgfilled: true,
541542
bgcolor: widget.backgroundcolor,
542-
hinttext: widget.hintText != null ? widget.hintText : 'Name',
543+
hinttext: widget.hintText != null ? widget.hintText : 'Email',
543544
),
544545
controller: textEditingController,
545546
fieldinitialValue: widget.initialValue,
@@ -607,7 +608,7 @@ class _GfFormFieldState extends State<GfFormField>
607608
gfprefixIcon: widget.iconPrefix,
608609
bgfilled: true,
609610
bgcolor: widget.backgroundcolor,
610-
hinttext: widget.hintText != null ? widget.hintText : 'Name',
611+
hinttext: widget.hintText != null ? widget.hintText : 'Phone',
611612
),
612613
controller: textEditingController,
613614
fieldinitialValue: widget.initialValue,
@@ -745,7 +746,7 @@ class _GfFormFieldState extends State<GfFormField>
745746
gfprefixIcon: widget.iconPrefix,
746747
bgfilled: true,
747748
bgcolor: widget.backgroundcolor,
748-
hinttext: widget.hintText != null ? widget.hintText : 'Name',
749+
hinttext: widget.hintText != null ? widget.hintText : 'Number',
749750
),
750751
controller: textEditingController,
751752
fieldinitialValue: widget.initialValue,

0 commit comments

Comments
 (0)