mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-28 06:28:41 +01:00
Image cleanup (#3160)
* Remove webp currency icons and switch all to SVG * Remove more unused images * Fix base icon * Fix Polygon, Tron, Bitcoin Cash, and BNB flat icons * Fix base icon * Remove more unused icons * Update icon urls * Switch support icons to SVGs * Replace more hero images * Add back Haven logo temporarily and fix refund icon * Fix Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com> --------- Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:cake_wallet/generated/i18n.dart';
|
||||
import 'package:cake_wallet/routes.dart';
|
||||
import 'package:cake_wallet/src/screens/base_page.dart';
|
||||
import 'package:cake_wallet/src/widgets/cake_image_widget.dart';
|
||||
import 'package:cake_wallet/src/widgets/option_tile.dart';
|
||||
import 'package:cake_wallet/utils/device_info.dart';
|
||||
import 'package:cake_wallet/view_model/support_view_model.dart';
|
||||
@@ -20,16 +21,16 @@ class SupportPage extends BasePage {
|
||||
AppBarStyle get appBarStyle => AppBarStyle.regular;
|
||||
|
||||
String get _imageSupportChat => currentTheme.isDark
|
||||
? 'assets/images/support_chat_dark.webp'
|
||||
: 'assets/images/support_chat.webp';
|
||||
? 'assets/new-ui/icons/support_chat_dark.svg'
|
||||
: 'assets/new-ui/icons/support_chat.svg';
|
||||
|
||||
String get _imageSupportDocs => currentTheme.isDark
|
||||
? 'assets/images/support_docs_dark.webp'
|
||||
: 'assets/images/support_docs.webp';
|
||||
? 'assets/new-ui/icons/support_docs_dark.svg'
|
||||
: 'assets/new-ui/icons/support_docs.svg';
|
||||
|
||||
String get _imageSupportLinks => currentTheme.isDark
|
||||
? 'assets/images/support_links_dark.webp'
|
||||
: 'assets/images/support_links.webp';
|
||||
? 'assets/new-ui/icons/support_links_dark.svg'
|
||||
: 'assets/new-ui/icons/support_links.svg';
|
||||
|
||||
@override
|
||||
Widget body(BuildContext context) => Center(
|
||||
@@ -39,19 +40,19 @@ class SupportPage extends BasePage {
|
||||
spacing: 16,
|
||||
children: [
|
||||
OptionTile(
|
||||
image: Image.asset(_imageSupportChat, width: 55, height: 55),
|
||||
image: CakeImageWidget(imageUrl: _imageSupportChat, width: 55, height: 55),
|
||||
title: S.of(context).support_title_live_chat,
|
||||
description: S.of(context).support_description_live_chat,
|
||||
onPressed: () => _onPressedSupportChat(context),
|
||||
),
|
||||
OptionTile(
|
||||
image: Image.asset(_imageSupportDocs, width: 55, height: 55),
|
||||
image: CakeImageWidget(imageUrl: _imageSupportDocs, width: 55, height: 55),
|
||||
title: S.of(context).support_title_guides,
|
||||
description: S.of(context).support_description_guides,
|
||||
onPressed: () => _launchUrl(supportViewModel.docsUrl),
|
||||
),
|
||||
OptionTile(
|
||||
image: Image.asset(_imageSupportLinks, width: 55, height: 55),
|
||||
image: CakeImageWidget(imageUrl: _imageSupportLinks, width: 55, height: 55),
|
||||
title: S.of(context).support_title_other_links,
|
||||
description: S.of(context).support_description_other_links,
|
||||
onPressed: () => Navigator.pushNamed(context, Routes.supportOtherLinks),
|
||||
|
||||
Reference in New Issue
Block a user