fix: not use fixed button width
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
694896abda
commit
7fce02e688
@ -233,7 +233,6 @@ class _ConnectionPageState extends State<ConnectionPage> {
|
|||||||
},
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
height: 24,
|
height: 24,
|
||||||
width: 72,
|
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: ftPressed.value
|
color: ftPressed.value
|
||||||
@ -257,7 +256,7 @@ class _ConnectionPageState extends State<ConnectionPage> {
|
|||||||
color: ftPressed.value
|
color: ftPressed.value
|
||||||
? MyTheme.color(context).bg
|
? MyTheme.color(context).bg
|
||||||
: MyTheme.color(context).text),
|
: MyTheme.color(context).text),
|
||||||
),
|
).marginSymmetric(horizontal: 12),
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
@ -272,7 +271,6 @@ class _ConnectionPageState extends State<ConnectionPage> {
|
|||||||
onTap: onConnect,
|
onTap: onConnect,
|
||||||
child: Container(
|
child: Container(
|
||||||
height: 24,
|
height: 24,
|
||||||
width: 65,
|
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: connPressed.value
|
color: connPressed.value
|
||||||
? MyTheme.accent
|
? MyTheme.accent
|
||||||
@ -289,12 +287,12 @@ class _ConnectionPageState extends State<ConnectionPage> {
|
|||||||
child: Center(
|
child: Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
translate(
|
translate(
|
||||||
"Connection",
|
"Connect",
|
||||||
),
|
),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 12, color: MyTheme.color(context).bg),
|
fontSize: 12, color: MyTheme.color(context).bg),
|
||||||
),
|
),
|
||||||
),
|
).marginSymmetric(horizontal: 12),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user