unifiy left labeled text input server
This commit is contained in:
parent
b4d4b4249e
commit
95ff8e4bbd
@ -1074,7 +1074,7 @@ class _NetworkState extends State<_Network> with AutomaticKeepAliveClientMixin {
|
|||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.end,
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
children: [_Button('Apply', submit, enabled: enabled)],
|
children: [_Button('Apply', submit, enabled: enabled)],
|
||||||
).marginOnly(top: 15),
|
).marginOnly(top: 10),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
]);
|
]);
|
||||||
@ -1697,33 +1697,30 @@ _LabeledTextField(
|
|||||||
bool secure) {
|
bool secure) {
|
||||||
return Row(
|
return Row(
|
||||||
children: [
|
children: [
|
||||||
Spacer(flex: 1),
|
ConstrainedBox(
|
||||||
|
constraints: const BoxConstraints(minWidth: 140),
|
||||||
|
child: Text(
|
||||||
|
'${translate(label)}:',
|
||||||
|
textAlign: TextAlign.right,
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 16, color: _disabledTextColor(context, enabled)),
|
||||||
|
).marginOnly(right: 10)),
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 4,
|
|
||||||
child: Text(
|
|
||||||
'${translate(label)}:',
|
|
||||||
textAlign: TextAlign.right,
|
|
||||||
style: TextStyle(color: _disabledTextColor(context, enabled)),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
Spacer(flex: 1),
|
|
||||||
Expanded(
|
|
||||||
flex: 10,
|
|
||||||
child: TextField(
|
child: TextField(
|
||||||
controller: controller,
|
controller: controller,
|
||||||
enabled: enabled,
|
enabled: enabled,
|
||||||
obscureText: secure,
|
obscureText: secure,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
isDense: true,
|
isDense: true,
|
||||||
contentPadding: EdgeInsets.symmetric(vertical: 15),
|
border: OutlineInputBorder(),
|
||||||
|
contentPadding: EdgeInsets.fromLTRB(14, 15, 14, 15),
|
||||||
errorText: errorText.isNotEmpty ? errorText : null),
|
errorText: errorText.isNotEmpty ? errorText : null),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: _disabledTextColor(context, enabled),
|
color: _disabledTextColor(context, enabled),
|
||||||
)),
|
)),
|
||||||
),
|
),
|
||||||
Spacer(flex: 1),
|
|
||||||
],
|
],
|
||||||
);
|
).marginOnly(bottom: 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ignore: must_be_immutable
|
// ignore: must_be_immutable
|
||||||
|
Loading…
x
Reference in New Issue
Block a user