center desktop tor button in menu

This commit is contained in:
julian 2023-09-20 13:13:44 -06:00
parent cd00e9f8fd
commit eff2d7d539

View file

@ -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,
), ),
],
), ),
), ),
), ),
], ],
), ),
), ),
],
),
); );
} }
} }