Unify Input. Remove hardcoded style (settings port)
This commit is contained in:
parent
97bd83f18f
commit
6e2c27cfb1
@ -769,7 +769,7 @@ class _SafetyState extends State<_Safety> with AutomaticKeepAliveClientMixin {
|
|||||||
'Port',
|
'Port',
|
||||||
Row(children: [
|
Row(children: [
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 80,
|
width: 95,
|
||||||
child: TextField(
|
child: TextField(
|
||||||
controller: controller,
|
controller: controller,
|
||||||
enabled: enabled && !locked,
|
enabled: enabled && !locked,
|
||||||
@ -778,13 +778,10 @@ class _SafetyState extends State<_Safety> with AutomaticKeepAliveClientMixin {
|
|||||||
FilteringTextInputFormatter.allow(RegExp(
|
FilteringTextInputFormatter.allow(RegExp(
|
||||||
r'^([0-9]|[1-9]\d|[1-9]\d{2}|[1-9]\d{3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])$')),
|
r'^([0-9]|[1-9]\d|[1-9]\d{2}|[1-9]\d{3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])$')),
|
||||||
],
|
],
|
||||||
textAlign: TextAlign.end,
|
|
||||||
decoration: const InputDecoration(
|
decoration: const InputDecoration(
|
||||||
hintText: '21118',
|
hintText: '21118',
|
||||||
border: OutlineInputBorder(),
|
|
||||||
contentPadding:
|
contentPadding:
|
||||||
EdgeInsets.only(bottom: 10, top: 10, right: 10),
|
EdgeInsets.symmetric(vertical: 12, horizontal: 12),
|
||||||
isCollapsed: true,
|
|
||||||
),
|
),
|
||||||
).marginOnly(right: 15),
|
).marginOnly(right: 15),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user