mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-11 05:04:35 +00:00
clean up unused function
This commit is contained in:
parent
3d72e83d2f
commit
b949e1e727
1 changed files with 0 additions and 29 deletions
|
@ -1,8 +1,5 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_svg/svg.dart';
|
|
||||||
import 'package:stackwallet/pages_desktop_specific/cashfusion/sub_widgets/fusion_progress.dart';
|
import 'package:stackwallet/pages_desktop_specific/cashfusion/sub_widgets/fusion_progress.dart';
|
||||||
import 'package:stackwallet/themes/stack_colors.dart';
|
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/widgets/desktop/desktop_dialog.dart';
|
import 'package:stackwallet/widgets/desktop/desktop_dialog.dart';
|
||||||
import 'package:stackwallet/widgets/desktop/desktop_dialog_close_button.dart';
|
import 'package:stackwallet/widgets/desktop/desktop_dialog_close_button.dart';
|
||||||
|
@ -20,32 +17,6 @@ class FusionDialog extends StatelessWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
Widget _getIconForState(CashFusionStatus state) {
|
|
||||||
switch (state) {
|
|
||||||
case CashFusionStatus.waiting:
|
|
||||||
return SvgPicture.asset(
|
|
||||||
Assets.svg.loader,
|
|
||||||
color:
|
|
||||||
Theme.of(context).extension<StackColors>()!.buttonBackSecondary,
|
|
||||||
);
|
|
||||||
case CashFusionStatus.running:
|
|
||||||
return SvgPicture.asset(
|
|
||||||
Assets.svg.loader,
|
|
||||||
color: Theme.of(context).extension<StackColors>()!.accentColorGreen,
|
|
||||||
);
|
|
||||||
case CashFusionStatus.success:
|
|
||||||
return SvgPicture.asset(
|
|
||||||
Assets.svg.checkCircle,
|
|
||||||
color: Theme.of(context).extension<StackColors>()!.accentColorGreen,
|
|
||||||
);
|
|
||||||
case CashFusionStatus.failed:
|
|
||||||
return SvgPicture.asset(
|
|
||||||
Assets.svg.circleAlert,
|
|
||||||
color: Theme.of(context).extension<StackColors>()!.textError,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return DesktopDialog(
|
return DesktopDialog(
|
||||||
maxHeight: 600,
|
maxHeight: 600,
|
||||||
child: SingleChildScrollView(
|
child: SingleChildScrollView(
|
||||||
|
|
Loading…
Reference in a new issue