hook up start button to fuse()

TODO link form inputs to fusion
This commit is contained in:
sneurlax 2023-09-18 15:56:40 -05:00
parent 289a369965
commit 1e8b5ed700

View file

@ -11,7 +11,9 @@
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_svg/svg.dart';
import 'package:stackwallet/providers/global/wallets_provider.dart';
import 'package:stackwallet/providers/ui/check_box_state_provider.dart';
import 'package:stackwallet/services/mixins/fusion_wallet_interface.dart';
import 'package:stackwallet/themes/stack_colors.dart';
import 'package:stackwallet/utilities/assets.dart';
import 'package:stackwallet/utilities/constants.dart';
@ -392,7 +394,7 @@ class _DesktopCashFusion extends ConsumerState<DesktopCashFusionView> {
borderColor: Theme.of(context)
.extension<StackColors>()!
.shadow,
child: Row(
child: const Row(
children: [],
),
),
@ -401,7 +403,13 @@ class _DesktopCashFusion extends ConsumerState<DesktopCashFusionView> {
),
PrimaryButton(
label: "Start",
onPressed: () {},
onPressed: () async {
await (ref
.read(walletsChangeNotifierProvider)
.getManager(widget.walletId)
.wallet as FusionWalletInterface)
.fuse();
},
),
],
),