diff --git a/lib/pages/wallet_view/sub_widgets/wallet_navigation_bar.dart b/lib/pages/wallet_view/sub_widgets/wallet_navigation_bar.dart index 79980cd1e..05b121a56 100644 --- a/lib/pages/wallet_view/sub_widgets/wallet_navigation_bar.dart +++ b/lib/pages/wallet_view/sub_widgets/wallet_navigation_bar.dart @@ -412,51 +412,47 @@ class _WalletNavigationBarState extends State { const SizedBox( width: 12, ), - ), - RawMaterialButton( - constraints: const BoxConstraints( - minWidth: 66, - ), - onPressed: onExchangePressed, - splashColor: - Theme.of(context).extension()!.highlight, - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular( - height / 2.0, - ), - ), - child: Container( - color: Colors.transparent, - child: Padding( - padding: const EdgeInsets.symmetric(vertical: 2.0), - child: Column( - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - const Spacer(), - SvgPicture.asset( - // Assets.svg.exchange(context), - // TODO change icon - Assets.svg.buyDesktop, - width: 24, - height: 24, + RawMaterialButton( + constraints: const BoxConstraints( + minWidth: 66, + ), + onPressed: widget.onBuyPressed, + splashColor: + Theme.of(context).extension()!.highlight, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular( + widget.height / 2.0, + ), + ), + child: Container( + color: Colors.transparent, + child: Padding( + padding: const EdgeInsets.symmetric(vertical: 2.0), + child: Column( + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + const Spacer(), + SvgPicture.asset( + Assets.svg.buyDesktop, + width: 24, + height: 24, + ), + const SizedBox( + height: 4, + ), + Text( + "Buy", + style: STextStyles.buttonSmall(context), + ), + const Spacer(), + ], ), - const SizedBox( - height: 4, - ), - Text( - "Buy", - style: STextStyles.buttonSmall(context), - ), - const Spacer(), - ], + ), ), ), - ), + ], ), - const SizedBox( - width: 12, - ), - ], + ), ), ], );