mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-22 18:44:31 +00:00
refactor fusing to running and update fusiondart ref
This commit is contained in:
parent
20dde81da1
commit
6877c00a49
3 changed files with 6 additions and 5 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 4f1e5f2e50972fe12ab501c002cf3c9ce685b4b5
|
||||
Subproject commit 64a78efc4a2f874f16975e2aa7fca564444e4aae
|
|
@ -11,7 +11,7 @@ import 'package:stackwallet/widgets/desktop/desktop_dialog_close_button.dart';
|
|||
import 'package:stackwallet/widgets/desktop/secondary_button.dart';
|
||||
import 'package:stackwallet/widgets/rounded_container.dart';
|
||||
|
||||
enum CashFusionStatus { waiting, fusing, success, failed }
|
||||
enum CashFusionStatus { waiting, running, success, failed }
|
||||
|
||||
class FusionDialog extends StatelessWidget {
|
||||
const FusionDialog({
|
||||
|
@ -31,7 +31,7 @@ class FusionDialog extends StatelessWidget {
|
|||
color:
|
||||
Theme.of(context).extension<StackColors>()!.buttonBackSecondary,
|
||||
);
|
||||
case CashFusionStatus.fusing:
|
||||
case CashFusionStatus.running:
|
||||
return SvgPicture.asset(
|
||||
Assets.svg.loader,
|
||||
color: Theme.of(context).extension<StackColors>()!.accentColorGreen,
|
||||
|
|
|
@ -89,9 +89,10 @@ mixin FusionWalletInterface {
|
|||
void _updateStatus(fusion.FusionStatus fusionStatus) {
|
||||
switch (fusionStatus) {
|
||||
case fusion.FusionStatus.setup:
|
||||
_uiState?.outputs = CashFusionStatus.waiting;
|
||||
_uiState?.connecting = CashFusionStatus.running;
|
||||
break;
|
||||
case fusion.FusionStatus.waiting:
|
||||
_uiState?.connecting = CashFusionStatus.success;
|
||||
_uiState?.outputs = CashFusionStatus.success;
|
||||
break;
|
||||
case fusion.FusionStatus.connecting:
|
||||
|
@ -99,7 +100,7 @@ mixin FusionWalletInterface {
|
|||
break;
|
||||
case fusion.FusionStatus.running:
|
||||
_uiState?.connecting = CashFusionStatus.success;
|
||||
_uiState?.fusing = CashFusionStatus.fusing;
|
||||
_uiState?.fusing = CashFusionStatus.running;
|
||||
break;
|
||||
case fusion.FusionStatus.complete:
|
||||
_uiState?.fusing = CashFusionStatus.success;
|
||||
|
|
Loading…
Reference in a new issue