mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-11 05:04:35 +00:00
fix typo
This commit is contained in:
parent
0ef9759434
commit
abd6e6fcca
1 changed files with 6 additions and 6 deletions
|
@ -9,7 +9,7 @@ import 'package:stackwallet/widgets/desktop/desktop_dialog_close_button.dart';
|
||||||
import 'package:stackwallet/widgets/desktop/secondary_button.dart';
|
import 'package:stackwallet/widgets/desktop/secondary_button.dart';
|
||||||
import 'package:stackwallet/widgets/rounded_container.dart';
|
import 'package:stackwallet/widgets/rounded_container.dart';
|
||||||
|
|
||||||
enum CashFustionStatus { waiting, restoring, success, failed }
|
enum CashFusionStatus { waiting, restoring, success, failed }
|
||||||
|
|
||||||
class FusionDialog extends StatelessWidget {
|
class FusionDialog extends StatelessWidget {
|
||||||
const FusionDialog({
|
const FusionDialog({
|
||||||
|
@ -18,25 +18,25 @@ class FusionDialog extends StatelessWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
Widget _getIconForState(CashFustionStatus state) {
|
Widget _getIconForState(CashFusionStatus state) {
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case CashFustionStatus.waiting:
|
case CashFusionStatus.waiting:
|
||||||
return SvgPicture.asset(
|
return SvgPicture.asset(
|
||||||
Assets.svg.loader,
|
Assets.svg.loader,
|
||||||
color:
|
color:
|
||||||
Theme.of(context).extension<StackColors>()!.buttonBackSecondary,
|
Theme.of(context).extension<StackColors>()!.buttonBackSecondary,
|
||||||
);
|
);
|
||||||
case CashFustionStatus.restoring:
|
case CashFusionStatus.restoring:
|
||||||
return SvgPicture.asset(
|
return SvgPicture.asset(
|
||||||
Assets.svg.loader,
|
Assets.svg.loader,
|
||||||
color: Theme.of(context).extension<StackColors>()!.accentColorGreen,
|
color: Theme.of(context).extension<StackColors>()!.accentColorGreen,
|
||||||
);
|
);
|
||||||
case CashFustionStatus.success:
|
case CashFusionStatus.success:
|
||||||
return SvgPicture.asset(
|
return SvgPicture.asset(
|
||||||
Assets.svg.checkCircle,
|
Assets.svg.checkCircle,
|
||||||
color: Theme.of(context).extension<StackColors>()!.accentColorGreen,
|
color: Theme.of(context).extension<StackColors>()!.accentColorGreen,
|
||||||
);
|
);
|
||||||
case CashFustionStatus.failed:
|
case CashFusionStatus.failed:
|
||||||
return SvgPicture.asset(
|
return SvgPicture.asset(
|
||||||
Assets.svg.circleAlert,
|
Assets.svg.circleAlert,
|
||||||
color: Theme.of(context).extension<StackColors>()!.textError,
|
color: Theme.of(context).extension<StackColors>()!.textError,
|
||||||
|
|
Loading…
Reference in a new issue