mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-27 11:24:14 +01:00
CAKE-344 | fixed MoonPay icon color on support and dashboard pages
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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')
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user