CAKE-344 | fixed MoonPay icon color on support and dashboard pages

This commit is contained in:
OleksandrSobol
2021-07-06 18:13:29 +03:00
parent dbf4897ac8
commit 5f02a7ddf5
9 changed files with 23 additions and 28 deletions
+2 -2
View File
@@ -8,11 +8,11 @@ class LinkListItem extends SettingsListItem {
@required this.link,
@required this.linkTitle,
this.icon,
this.iconColor})
this.hasIconColor = false})
: super(title);
final String icon;
final String link;
final String linkTitle;
final Color iconColor;
final bool hasIconColor;
}
+2 -10
View File
@@ -6,9 +6,6 @@ import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:mobx/mobx.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:cake_wallet/di.dart';
import 'package:cake_wallet/store/settings_store.dart';
import 'package:cake_wallet/themes/theme_base.dart';
part 'support_view_model.g.dart';
@@ -16,11 +13,6 @@ class SupportViewModel = SupportViewModelBase with _$SupportViewModel;
abstract class SupportViewModelBase with Store {
SupportViewModelBase() {
final currentTheme = getIt.get<SettingsStore>().currentTheme;
final iconColor = currentTheme.type == ThemeType.dark
? Colors.white
: Colors.black;
items = [
RegularListItem(
title: S.current.faq,
@@ -39,7 +31,7 @@ abstract class SupportViewModelBase with Store {
LinkListItem(
title: 'GitHub',
icon: 'assets/images/github.png',
iconColor: iconColor,
hasIconColor: true,
linkTitle: S.current.apk_update,
link: 'https://github.com/cake-tech/cake_wallet/releases'),
LinkListItem(
@@ -65,7 +57,7 @@ abstract class SupportViewModelBase with Store {
LinkListItem(
title: 'MoonPay',
icon: 'assets/images/moonpay.png',
iconColor: iconColor,
hasIconColor: true,
linkTitle: S.current.submit_request,
link: 'https://support.moonpay.com/hc/en-gb/requests/new')
];