mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-02 12:14:09 +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:
@@ -936,7 +936,7 @@ class SwapAmountBoxState extends State<SwapAmountBox> {
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
Image.asset(_selectedCurrency.iconPath ?? "",
|
||||
CakeImageWidget(imageUrl: _selectedCurrency.iconPath ?? "",
|
||||
width: 28, height: 28),
|
||||
SizedBox(width: 10),
|
||||
Text(
|
||||
|
||||
@@ -189,7 +189,7 @@ class AssetTile extends StatelessWidget {
|
||||
|
||||
String _getIconPath() {
|
||||
if(balance.asset == CryptoCurrency.baseEth)
|
||||
return "assets/images/crypto/ethereum.webp";
|
||||
return "assets/new-ui/crypto_full_icons/base.svg";
|
||||
|
||||
return balance.asset.iconPath ?? "";
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ class HistoryTile extends StatelessWidget {
|
||||
return Stack(children: [
|
||||
Opacity(
|
||||
opacity: pending ? 0.5 : 1,
|
||||
child: CakeImageWidget(imageUrl: asset?.iconSvgPath ?? asset?.iconPath ??"", width: 34,
|
||||
child: CakeImageWidget(imageUrl: asset?.iconPath ??"", width: 34,
|
||||
height: 34,),
|
||||
),
|
||||
Align(
|
||||
|
||||
@@ -6,6 +6,7 @@ import 'package:cake_wallet/routes.dart';
|
||||
import 'package:cake_wallet/src/screens/transaction_details/confirmations_list_item.dart';
|
||||
import 'package:cake_wallet/src/screens/transaction_details/transaction_details_list_item.dart';
|
||||
import 'package:cake_wallet/src/screens/transaction_details/address_list_item.dart';
|
||||
import 'package:cake_wallet/src/widgets/cake_image_widget.dart';
|
||||
import 'package:cake_wallet/src/widgets/new_list_row/new_list_section.dart';
|
||||
import 'package:cake_wallet/utils/address_formatter.dart';
|
||||
import 'package:cake_wallet/view_model/transaction_details_view_model.dart';
|
||||
@@ -69,8 +70,8 @@ class _TransactionDetailsModalState extends State<TransactionDetailsModal> {
|
||||
controller: controller,
|
||||
child: Column(
|
||||
children: [
|
||||
Image.asset(
|
||||
widget.transactionDetailsViewModel.transactionAsset.iconPath ??
|
||||
CakeImageWidget(
|
||||
imageUrl: widget.transactionDetailsViewModel.transactionAsset.iconPath ??
|
||||
"",
|
||||
width: 64,
|
||||
height: 64),
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'package:cake_wallet/generated/i18n.dart';
|
||||
import 'package:cake_wallet/new-ui/widgets/new_primary_button.dart';
|
||||
import 'package:cake_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
|
||||
import 'package:cake_wallet/src/widgets/cake_image_widget.dart';
|
||||
import 'package:cake_wallet/view_model/dashboard/dashboard_view_model.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_mobx/flutter_mobx.dart';
|
||||
@@ -137,7 +138,7 @@ class UnconfirmedBalanceModal extends StatelessWidget {
|
||||
Stack(
|
||||
alignment: Alignment.bottomRight,
|
||||
children: [
|
||||
Image.asset(currencyIconPath, height: 100, width: 100),
|
||||
CakeImageWidget(imageUrl: currencyIconPath, height: 100, width: 100),
|
||||
Container(
|
||||
width: 36,
|
||||
height: 36,
|
||||
|
||||
@@ -109,7 +109,7 @@ class _NewSendAmountInputState extends State<NewSendAmountInput> {
|
||||
spacing: 8,
|
||||
children: [
|
||||
if (widget.hasPicker && widget.currencyIconPath.isNotEmpty)
|
||||
Image.asset(widget.currencyIconPath, width: 24, height: 24),
|
||||
CakeImageWidget(imageUrl: widget.currencyIconPath, width: 24, height: 24),
|
||||
Text(widget.currency),
|
||||
if (widget.hasPicker)
|
||||
CakeImageWidget(imageUrl:
|
||||
|
||||
@@ -53,7 +53,7 @@ class _RefundAddressModalState extends State<RefundAddressModal> {
|
||||
spacing: 24,
|
||||
children: [
|
||||
CakeImageWidget(
|
||||
imageUrl:"assets/new-ui/refund_address.svg.vec",
|
||||
imageUrl:"assets/new-ui/refund_address.svg",
|
||||
colorFilter:
|
||||
ColorFilter.mode(Theme.of(context).colorScheme.primary, BlendMode.srcIn),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user