mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-21 22:58:49 +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,50 +120,56 @@ class _DesktopTorStatusButtonState extends ConsumerState<DesktopTorStatusButton>
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
.getDesktopMenuButtonStyle(context),
|
.getDesktopMenuButtonStyle(context),
|
||||||
onPressed: widget.onPressed,
|
onPressed: widget.onPressed,
|
||||||
child: Padding(
|
child: Row(
|
||||||
padding: const EdgeInsets.symmetric(
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
vertical: 16,
|
children: [
|
||||||
),
|
Padding(
|
||||||
child: Row(
|
padding: const EdgeInsets.symmetric(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
vertical: 16,
|
||||||
children: [
|
|
||||||
AnimatedContainer(
|
|
||||||
duration: widget.transitionDuration,
|
|
||||||
width: _iconOnly ? 0 : 16,
|
|
||||||
),
|
),
|
||||||
SvgPicture.asset(
|
child: Row(
|
||||||
Assets.svg.tor,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
color: _color(_torConnectionStatus),
|
children: [
|
||||||
width: 20,
|
AnimatedContainer(
|
||||||
height: 20,
|
duration: widget.transitionDuration,
|
||||||
),
|
width: _iconOnly ? 0 : 16,
|
||||||
AnimatedOpacity(
|
),
|
||||||
duration: widget.transitionDuration,
|
SvgPicture.asset(
|
||||||
opacity: _iconOnly ? 0 : 1.0,
|
Assets.svg.tor,
|
||||||
child: SizeTransition(
|
color: _color(_torConnectionStatus),
|
||||||
sizeFactor: animationController,
|
width: 20,
|
||||||
axis: Axis.horizontal,
|
height: 20,
|
||||||
axisAlignment: -1,
|
),
|
||||||
child: SizedBox(
|
AnimatedOpacity(
|
||||||
width: labelLength,
|
duration: widget.transitionDuration,
|
||||||
child: Row(
|
opacity: _iconOnly ? 0 : 1.0,
|
||||||
children: [
|
child: SizeTransition(
|
||||||
const SizedBox(
|
sizeFactor: animationController,
|
||||||
width: 12,
|
axis: Axis.horizontal,
|
||||||
),
|
axisAlignment: -1,
|
||||||
Text(
|
child: Row(
|
||||||
_torConnectionStatus.name.capitalize(),
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
style: STextStyles.smallMed12(context).copyWith(
|
children: [
|
||||||
color: _color(_torConnectionStatus),
|
const SizedBox(
|
||||||
|
width: 12,
|
||||||
),
|
),
|
||||||
),
|
Text(
|
||||||
],
|
_torConnectionStatus.name.capitalize(),
|
||||||
|
style: STextStyles.smallMed12(context).copyWith(
|
||||||
|
color: _color(_torConnectionStatus),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(
|
||||||
|
width: 21,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
),
|
),
|
||||||
],
|
),
|
||||||
),
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue