chore: Add label to homeserver textfield
This commit is contained in:
parent
df44bb5277
commit
b824ef34e4
3 changed files with 9 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ class DefaultAppBarSearchField extends StatefulWidget {
|
|||
final bool autofocus;
|
||||
final String prefixText;
|
||||
final String hintText;
|
||||
final String labelText;
|
||||
final EdgeInsets padding;
|
||||
final bool readOnly;
|
||||
final Widget prefixIcon;
|
||||
|
|
@ -27,6 +28,7 @@ class DefaultAppBarSearchField extends StatefulWidget {
|
|||
this.prefixText,
|
||||
this.hintText,
|
||||
this.padding,
|
||||
this.labelText,
|
||||
this.readOnly = false,
|
||||
this.prefixIcon,
|
||||
this.unfocusOnClear = true,
|
||||
|
|
@ -89,6 +91,7 @@ class DefaultAppBarSearchFieldState extends State<DefaultAppBarSearchField> {
|
|||
onSubmitted: widget.onSubmit,
|
||||
decoration: InputDecoration(
|
||||
prefixText: widget.prefixText,
|
||||
labelText: widget.labelText,
|
||||
enabledBorder: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.circular(AppConfig.borderRadius),
|
||||
borderSide:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue