mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-26 03:10:43 +01:00
chore: Add label to homeserver textfield
This commit is contained in:
parent
1e41a2c5ff
commit
55d82d3437
@ -923,6 +923,7 @@
|
|||||||
"type": "text",
|
"type": "text",
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
|
"homeserver": "Homeserver",
|
||||||
"enterYourHomeserver": "Enter your homeserver",
|
"enterYourHomeserver": "Enter your homeserver",
|
||||||
"@enterYourHomeserver": {
|
"@enterYourHomeserver": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
@ -39,6 +39,7 @@ class HomeserverPickerView extends StatelessWidget {
|
|||||||
onSubmit: (_) => controller.checkHomeserverAction(),
|
onSubmit: (_) => controller.checkHomeserverAction(),
|
||||||
unfocusOnClear: false,
|
unfocusOnClear: false,
|
||||||
autocorrect: false,
|
autocorrect: false,
|
||||||
|
labelText: L10n.of(context).homeserver,
|
||||||
),
|
),
|
||||||
elevation: 0,
|
elevation: 0,
|
||||||
),
|
),
|
||||||
@ -78,7 +79,10 @@ class HomeserverPickerView extends StatelessWidget {
|
|||||||
return Center(child: CircularProgressIndicator());
|
return Center(child: CircularProgressIndicator());
|
||||||
}
|
}
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.all(12.0),
|
padding: const EdgeInsets.symmetric(
|
||||||
|
horizontal: 12.0,
|
||||||
|
vertical: 4.0,
|
||||||
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
|
@ -11,6 +11,7 @@ class DefaultAppBarSearchField extends StatefulWidget {
|
|||||||
final bool autofocus;
|
final bool autofocus;
|
||||||
final String prefixText;
|
final String prefixText;
|
||||||
final String hintText;
|
final String hintText;
|
||||||
|
final String labelText;
|
||||||
final EdgeInsets padding;
|
final EdgeInsets padding;
|
||||||
final bool readOnly;
|
final bool readOnly;
|
||||||
final Widget prefixIcon;
|
final Widget prefixIcon;
|
||||||
@ -27,6 +28,7 @@ class DefaultAppBarSearchField extends StatefulWidget {
|
|||||||
this.prefixText,
|
this.prefixText,
|
||||||
this.hintText,
|
this.hintText,
|
||||||
this.padding,
|
this.padding,
|
||||||
|
this.labelText,
|
||||||
this.readOnly = false,
|
this.readOnly = false,
|
||||||
this.prefixIcon,
|
this.prefixIcon,
|
||||||
this.unfocusOnClear = true,
|
this.unfocusOnClear = true,
|
||||||
@ -89,6 +91,7 @@ class DefaultAppBarSearchFieldState extends State<DefaultAppBarSearchField> {
|
|||||||
onSubmitted: widget.onSubmit,
|
onSubmitted: widget.onSubmit,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
prefixText: widget.prefixText,
|
prefixText: widget.prefixText,
|
||||||
|
labelText: widget.labelText,
|
||||||
enabledBorder: OutlineInputBorder(
|
enabledBorder: OutlineInputBorder(
|
||||||
borderRadius: BorderRadius.circular(AppConfig.borderRadius),
|
borderRadius: BorderRadius.circular(AppConfig.borderRadius),
|
||||||
borderSide:
|
borderSide:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user