mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-10 20:54:33 +00:00
center desktop tor button in menu
This commit is contained in:
parent
cd00e9f8fd
commit
eff2d7d539
1 changed files with 45 additions and 39 deletions
|
@ -120,7 +120,10 @@ class _DesktopTorStatusButtonState extends ConsumerState<DesktopTorStatusButton>
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getDesktopMenuButtonStyle(context),
|
.getDesktopMenuButtonStyle(context),
|
||||||
onPressed: widget.onPressed,
|
onPressed: widget.onPressed,
|
||||||
child: Padding(
|
child: Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(
|
padding: const EdgeInsets.symmetric(
|
||||||
vertical: 16,
|
vertical: 16,
|
||||||
),
|
),
|
||||||
|
@ -144,9 +147,8 @@ class _DesktopTorStatusButtonState extends ConsumerState<DesktopTorStatusButton>
|
||||||
sizeFactor: animationController,
|
sizeFactor: animationController,
|
||||||
axis: Axis.horizontal,
|
axis: Axis.horizontal,
|
||||||
axisAlignment: -1,
|
axisAlignment: -1,
|
||||||
child: SizedBox(
|
|
||||||
width: labelLength,
|
|
||||||
child: Row(
|
child: Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
const SizedBox(
|
const SizedBox(
|
||||||
width: 12,
|
width: 12,
|
||||||
|
@ -157,14 +159,18 @@ class _DesktopTorStatusButtonState extends ConsumerState<DesktopTorStatusButton>
|
||||||
color: _color(_torConnectionStatus),
|
color: _color(_torConnectionStatus),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
const SizedBox(
|
||||||
|
width: 21,
|
||||||
),
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue