mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-19 05:58:50 +02:00
CAKE-344 | added MoonPay contact to support page; applied icon color change according to theme
This commit is contained in:
@@ -7,6 +7,7 @@ class SettingsLinkProviderCell extends StandardListRow {
|
||||
SettingsLinkProviderCell(
|
||||
{@required String title,
|
||||
@required this.icon,
|
||||
this.iconColor,
|
||||
@required this.link,
|
||||
@required this.linkTitle})
|
||||
: super(title: title, isSelected: false, onTap: (BuildContext context) => _launchUrl(link) );
|
||||
@@ -14,10 +15,11 @@ class SettingsLinkProviderCell extends StandardListRow {
|
||||
final String icon;
|
||||
final String link;
|
||||
final String linkTitle;
|
||||
final Color iconColor;
|
||||
|
||||
@override
|
||||
Widget buildLeading(BuildContext context) =>
|
||||
icon != null ? Image.asset(icon) : null;
|
||||
icon != null ? Image.asset(icon, color: iconColor) : null;
|
||||
|
||||
@override
|
||||
Widget buildTrailing(BuildContext context) => Text(linkTitle,
|
||||
|
||||
@@ -34,6 +34,7 @@ class SupportPage extends BasePage {
|
||||
return SettingsLinkProviderCell(
|
||||
title: item.title,
|
||||
icon: item.icon,
|
||||
iconColor: item.iconColor,
|
||||
link: item.link,
|
||||
linkTitle: item.linkTitle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user