brand: de-cake the app (hash-bag success art, asset + widget renames, filter, icon padding)

Send-success art: replace the Cake birthday cake with a Hash Bags money sack
that has a # on it and erupts #/$/₿ (assets/images/hash_bag.png). Used by the
success page, send-confirm sheet, exchange-trade, and dEURO savings.

Asset renames (files + refs):
- birthday_cake.png            -> hash_bag.png
- restore_cupcake(.png/_dark)  -> restore_hashbag.png
- qr-cake.png                  -> qr-hashbag.png
- arrow_bottom_cake_green.png  -> arrow_bottom_green.png (+ 2.0x/3.0x)

Identifier renames:
- CakeImageWidget -> HashImageWidget (widget + file + 93 refs)
- typography _cakeRegular/_cakeBold/_cakeSemiBold -> _hash*

Transaction filter: drop the Cake Pay "Orders" row and every non-Trocador
trade provider; the swap gate is already Trocador-only, so this just aligns the
filter UI with reality.

Android launcher: add breathing room to the adaptive-foreground # (all
densities, monochrome included); iOS icon unchanged.

About page: swap the Cake easter eggs for Hash Bags ones.

Deferred (needs a build to verify): new-ui .svg.vec filename renames
(cake_squircle_icon, cakewallet-wordmark, cake-setting) — already Hash Bags in
content, only the filenames are cake, and they route through the .vec precompile.
This commit is contained in:
jwinterm
2026-08-07 02:57:29 -04:00
parent 6dc3da4621
commit 7e368f92e6
125 changed files with 288 additions and 350 deletions

Before

Width:  |  Height:  |  Size: 410 B

After

Width:  |  Height:  |  Size: 410 B

Before

Width:  |  Height:  |  Size: 573 B

After

Width:  |  Height:  |  Size: 573 B

Before

Width:  |  Height:  |  Size: 285 B

After

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

+4 -4
View File
@@ -4,7 +4,7 @@ import 'package:hash_wallet/entities/new_ui_entities/list_item/list_item_regular
import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/new-ui/widgets/modal_page_wrapper.dart';
import 'package:hash_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/widgets/new_list_row/new_list_section.dart';
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
@@ -14,12 +14,12 @@ import 'package:url_launcher/url_launcher.dart';
const List<String> aboutPageEasterEggs = [
"Designed in (S)pain",
"Proudly managing over 🤷‍♂️ XMR",
"The cake is not a lie 🍰",
"The bag is not a lie 💰",
"I don’t play soccer because I enjoy the sport. I’m just doing it for kicks.",
"Markets in red? Big deal.\nWhat color is the grass outside?",
"Conquered Web3, now working on Web6-7",
"Proud owner of none of your funds\n(we are not impressed)",
"*writing down my seedphrase*\ncake cake cake cake cake cake cake ca...",
"*writing down my seedphrase*\nhash hash hash hash hash hash hash ha...",
"Don't forget to actually use your crypto to pay for stuff in the real world 🙂",
"A chain of blocks? That's preposterous!",
"IOU a hug <3",
@@ -69,7 +69,7 @@ class _AboutPageState extends State<AboutPage> {
SizedBox(),
GestureDetector(
onTap: _easterEgg,
child: CakeImageWidget(
child: HashImageWidget(
imageUrl: "assets/new-ui/cake_squircle_icon.svg",
width: 128,
height: 128,
+2 -2
View File
@@ -11,7 +11,7 @@ import 'package:hash_wallet/new-ui/widgets/new_primary_button.dart';
import 'package:hash_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
import 'package:hash_wallet/src/widgets/alert_with_one_action.dart';
import 'package:hash_wallet/src/widgets/alert_with_two_actions.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/utils/show_pop_up.dart';
import 'package:hash_wallet/view_model/dashboard/dashboard_view_model.dart';
import 'package:hash_wallet/view_model/monero_account_list/account_list_item.dart';
@@ -459,7 +459,7 @@ class _AccountCreationModalState extends State<AccountCreationModal> {
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.surfaceContainerHigh,
borderRadius: BorderRadius.circular(5)),
child: CakeImageWidget(
child: HashImageWidget(
imageUrl: "assets/new-ui/randomize.svg",
colorFilter: ColorFilter.mode(
Theme.of(context).colorScheme.primary, BlendMode.srcIn),
+3 -3
View File
@@ -10,7 +10,7 @@ import 'package:hash_wallet/new-ui/widgets/coins_page/cards/balance_card.dart';
import 'package:hash_wallet/new-ui/widgets/long_press_menu.dart';
import 'package:hash_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
import 'package:hash_wallet/routes.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/utils/address_formatter.dart';
import 'package:hash_wallet/utils/show_pop_up.dart';
import 'package:hash_wallet/view_model/dashboard/dashboard_view_model.dart';
@@ -440,7 +440,7 @@ class AddressRow extends StatelessWidget {
],
),
),
if (selected) CakeImageWidget(imageUrl: "assets/new-ui/checkmark.svg")
if (selected) HashImageWidget(imageUrl: "assets/new-ui/checkmark.svg")
],
),
),
@@ -479,7 +479,7 @@ class ShowHiddenButton extends StatelessWidget {
Text(S.of(context).show_hidden_addresses),
RotatedBox(
quarterTurns: 1,
child: CakeImageWidget(imageUrl: "assets/new-ui/dropdown_arrow.svg"))
child: HashImageWidget(imageUrl: "assets/new-ui/dropdown_arrow.svg"))
],
),
),
@@ -66,7 +66,7 @@ class _BridgeAmountPageState extends State<BridgeAmountPage> {
return InfoBottomSheet(
footerType: FooterType.doubleActionButton,
titleText: 'Bridge initiated!',
contentImage: 'assets/images/birthday_cake.png',
contentImage: 'assets/images/hash_bag.png',
content: 'The bridging will take between 30 seconds and 3 '
'minutes to complete.',
doubleActionLeftButtonText: S.of(bottomSheetContext).close,
@@ -4,7 +4,7 @@ import 'package:hash_wallet/new-ui/widgets/bridge/network_path_pill.dart';
import 'package:hash_wallet/new-ui/widgets/confirm_swiper.dart';
import 'package:hash_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
import 'package:hash_wallet/new-ui/widgets/send_page/send_confirm_bottom_widget.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/view_model/bridge/bridge_view_model.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@@ -70,7 +70,7 @@ class _BridgeConfirmSheetState extends State<BridgeConfirmSheet> {
leadingWidget: Row(
spacing: 8,
children: [
CakeImageWidget(
HashImageWidget(
imageUrl: bridgeViewModel.selectedToken?.iconPath ?? '',
width: 36,
height: 36,
@@ -4,7 +4,7 @@ import 'package:hash_wallet/new-ui/pages/bridge/bridge_confirm_sheet.dart';
import 'package:hash_wallet/new-ui/widgets/keyboard_hide_overlay.dart';
import 'package:hash_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
import 'package:hash_wallet/new-ui/widgets/send_page/send_address_input.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/view_model/bridge/bridge_view_model.dart';
import 'package:flutter/material.dart';
import 'package:flutter_mobx/flutter_mobx.dart';
@@ -85,7 +85,7 @@ class _BridgeReceiveAddressInputPageState extends State<BridgeReceiveAddressInpu
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
CakeImageWidget(
HashImageWidget(
imageUrl:
'assets/new-ui/chain_badges/${chainName?.toLowerCase()}.svg',
width: 24,
@@ -3,7 +3,7 @@ import 'package:hash_wallet/new-ui/pages/bridge/bridge_confirm_sheet.dart';
import 'package:hash_wallet/new-ui/pages/bridge/bridge_receive_address_input_page.dart';
import 'package:hash_wallet/new-ui/widgets/keyboard_hide_overlay.dart';
import 'package:hash_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/widgets/new_list_row/list_Item_style_wrapper.dart';
import 'package:hash_wallet/view_model/bridge/bridge_view_model.dart';
import 'package:flutter/material.dart';
@@ -60,7 +60,7 @@ class _BridgeReceivingWalletPageState extends State<BridgeReceivingWalletPage> {
children: [
const SizedBox(height: 8),
Center(
child: CakeImageWidget(
child: HashImageWidget(
borderRadius: 8,
imageUrl: chainName.isNotEmpty
? 'assets/images/crypto/${chainName.toLowerCase()}.webp'
@@ -251,7 +251,7 @@ class _BridgeReceivingWalletRow extends StatelessWidget {
],
),
),
CakeImageWidget(
HashImageWidget(
imageUrl: 'assets/new-ui/arrow_forward.svg',
height: 16,
color: Theme.of(ctx).colorScheme.onSurfaceVariant,
@@ -5,7 +5,7 @@ import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/new-ui/viewmodels/lightning_username/lightning_username_bloc.dart';
import 'package:hash_wallet/new-ui/widgets/new_primary_button.dart';
import 'package:hash_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/themes/core/theme_store.dart';
import 'package:cw_core/generate_name.dart';
import 'package:flutter/material.dart';
@@ -165,7 +165,7 @@ class LightningUsernameInfo extends StatelessWidget {
return Column(
spacing: 24,
children: [
CakeImageWidget(
HashImageWidget(
imageUrl: isLightMode
? "assets/new-ui/lightning_username_setup_light.svg"
: "assets/new-ui/lightning_username_setup.svg"),
@@ -221,7 +221,7 @@ class LightningUsernameEditor extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
spacing: 12,
children: [
CakeImageWidget(
HashImageWidget(
imageUrl: isLightMode
? "assets/new-ui/lightning_username_setup_light.svg"
: "assets/new-ui/lightning_username_setup.svg"),
@@ -257,7 +257,7 @@ class LightningUsernameEditor extends StatelessWidget {
color: Colors.transparent,
child: InkWell(
onTap: onRandomizeButtonTap,
child: CakeImageWidget(
child: HashImageWidget(
imageUrl: "assets/new-ui/randomize.svg",
colorFilter: ColorFilter.mode(
Theme.of(context).colorScheme.primary, BlendMode.srcIn)),
+4 -4
View File
@@ -20,7 +20,7 @@ import 'package:hash_wallet/new-ui/widgets/send_page/send_confirm_sheet.dart';
import 'package:hash_wallet/new-ui/widgets/send_page/send_memo_input.dart';
import 'package:hash_wallet/reactions/wallet_connect.dart';
import 'package:hash_wallet/src/widgets/bottom_sheet/token_selection_bottom_sheet.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/widgets/new_list_row/list_item_regular_row_widget.dart';
import 'package:hash_wallet/src/widgets/standard_checkbox.dart';
import 'package:hash_wallet/store/app_store.dart';
@@ -291,7 +291,7 @@ class _NewSendPageState extends State<NewSendPage> {
if (widget.sendViewModel.outputs.length > 1)
ModernButton(
size: 36,
icon: CakeImageWidget(imageUrl:
icon: HashImageWidget(imageUrl:
"assets/new-ui/remove_recipient.svg",
colorFilter: ColorFilter.mode(
Theme.of(context).colorScheme.primary,
@@ -322,7 +322,7 @@ class _NewSendPageState extends State<NewSendPage> {
if (widget.mode.helpContent != null)
ModernButton(
size: 36,
icon: CakeImageWidget(imageUrl:
icon: HashImageWidget(imageUrl:
"assets/new-ui/help.svg",
colorFilter: ColorFilter.mode(
Theme.of(context).colorScheme.primary, BlendMode.srcIn),
@@ -1343,7 +1343,7 @@ class SendHelpPage extends StatelessWidget {
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.center,
children: [
CakeImageWidget(imageUrl:content.imagePath),
HashImageWidget(imageUrl:content.imagePath),
Text(
content.description,
textAlign: TextAlign.center,
+2 -2
View File
@@ -5,7 +5,7 @@ import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/new-ui/modal_navigator.dart';
import 'package:hash_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
import 'package:hash_wallet/routes.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/widgets/new_list_row/new_list_section.dart';
import 'package:hash_wallet/view_model/dashboard/dashboard_view_model.dart';
import 'package:cw_core/wallet_info.dart';
@@ -147,7 +147,7 @@ class SettingsMainPage extends StatelessWidget {
child: Row(
spacing: 8,
children: [
CakeImageWidget(imageUrl: section.titleIconPath,
HashImageWidget(imageUrl: section.titleIconPath,
colorFilter: ColorFilter.mode(
Theme.of(context).colorScheme.onSurfaceVariant,
BlendMode.srcIn,
+8 -8
View File
@@ -24,7 +24,7 @@ import 'package:hash_wallet/src/screens/exchange/widgets/present_provider_picker
import 'package:hash_wallet/src/screens/send/widgets/extract_address_from_parsed.dart';
import 'package:hash_wallet/src/widgets/alert_with_one_action.dart';
import 'package:hash_wallet/src/widgets/alert_with_two_actions.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/widgets/primary_button.dart';
import 'package:hash_wallet/utils/debounce.dart';
import 'package:hash_wallet/utils/payment_request.dart';
@@ -463,7 +463,7 @@ class _NewSwapPageState extends State<NewSwapPage> {
title: S.of(context).swap,
leadingIcon: Icon(Icons.close),
onLeadingPressed: Navigator.of(context).maybePop,
trailingIcon: CakeImageWidget(imageUrl:
trailingIcon: HashImageWidget(imageUrl:
"assets/new-ui/options.svg",
colorFilter:
ColorFilter.mode(Theme.of(context).colorScheme.primary, BlendMode.srcIn),
@@ -752,7 +752,7 @@ class SwapProviderPreview extends StatelessWidget {
spacing: 12,
children: [
if (provider != null)
CakeImageWidget(imageUrl:provider.description.image,width:28,height:28),
HashImageWidget(imageUrl:provider.description.image,width:28,height:28),
if (provider == null) CupertinoActivityIndicator(),
Text(
provider?.title ?? "${S.of(context).finding_provider}...",
@@ -775,7 +775,7 @@ class SwapProviderPreview extends StatelessWidget {
fontWeight: FontWeight.w400,
color: Theme.of(context).colorScheme.onSurfaceVariant),
),
CakeImageWidget(imageUrl:
HashImageWidget(imageUrl:
"assets/new-ui/chooser.svg",
colorFilter: ColorFilter.mode(
Theme.of(context).colorScheme.onSurfaceVariant, BlendMode.srcIn),
@@ -936,7 +936,7 @@ class SwapAmountBoxState extends State<SwapAmountBox> {
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
CakeImageWidget(imageUrl: _selectedCurrency.iconPath ?? "",
HashImageWidget(imageUrl: _selectedCurrency.iconPath ?? "",
width: 28, height: 28),
SizedBox(width: 10),
Text(
@@ -945,7 +945,7 @@ class SwapAmountBoxState extends State<SwapAmountBox> {
),
if (chainIconPath != null && chainIconPath.isNotEmpty) ...[
SizedBox(width: 4),
CakeImageWidget(
HashImageWidget(
imageUrl: chainIconPath,
width: 12,
height: 12,
@@ -966,7 +966,7 @@ class SwapAmountBoxState extends State<SwapAmountBox> {
padding: const EdgeInsets.all(4.0),
child: RotatedBox(
quarterTurns: 2,
child: CakeImageWidget(imageUrl:
child: HashImageWidget(imageUrl:
"assets/new-ui/dropdown_arrow.svg",
width: 4,
height: 4,
@@ -1078,7 +1078,7 @@ class SwapAmountBoxState extends State<SwapAmountBox> {
),
RotatedBox(
quarterTurns: 2,
child: CakeImageWidget(imageUrl:
child: HashImageWidget(imageUrl:
"assets/new-ui/dropdown_arrow.svg",
colorFilter: ColorFilter.mode(
(addressEmpty && widget.isReceiverCard)
+2 -2
View File
@@ -1,4 +1,4 @@
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/themes/core/theme_extension.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
@@ -76,7 +76,7 @@ class AppsWidget extends StatelessWidget {
children: [
Padding(
padding: const EdgeInsets.only(right: 20),
child: CakeImageWidget(imageUrl: image, height: 54, width: 54),
child: HashImageWidget(imageUrl: image, height: 54, width: 54),
),
Expanded(
child: Column(
@@ -1,4 +1,4 @@
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:cw_core/generate_name.dart';
import 'package:flutter/material.dart';
import 'package:flutter_mobx/flutter_mobx.dart';
@@ -21,7 +21,7 @@ class NetworkPathPill extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: [
CakeImageWidget(
HashImageWidget(
imageUrl: 'assets/new-ui/chain_badges/${sourceChainName.toLowerCase()}.svg',
width: 24,
height: 24,
@@ -47,7 +47,7 @@ class NetworkPathPill extends StatelessWidget {
color: scheme.primary,
),
),
CakeImageWidget(
HashImageWidget(
imageUrl: 'assets/new-ui/chain_badges/${destChainName.toLowerCase()}.svg',
width: 24,
height: 24,
@@ -1,6 +1,6 @@
import 'package:hash_wallet/entities/bridge_transfer.dart';
import 'package:hash_wallet/evm/evm.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/themes/core/custom_theme_colors.dart';
import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
@@ -87,7 +87,7 @@ class TransferHistoryRow extends StatelessWidget {
),
child: Stack(
children: [
CakeImageWidget(
HashImageWidget(
imageUrl: 'assets/images/crypto/${sourceChainName?.toLowerCase()}.webp',
width: 28,
height: 28,
@@ -95,7 +95,7 @@ class TransferHistoryRow extends StatelessWidget {
Positioned(
top: 14,
left: 12,
child: CakeImageWidget(
child: HashImageWidget(
imageUrl: 'assets/images/crypto/${destChainName?.toLowerCase()}.webp',
width: 28,
height: 28,
+3 -3
View File
@@ -4,7 +4,7 @@ import 'dart:io';
import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/new-ui/widgets/new_primary_button.dart';
import 'package:hash_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_svg/flutter_svg.dart';
@@ -145,7 +145,7 @@ class VersionNumberHeader extends StatelessWidget {
spacing: 8,
mainAxisSize: MainAxisSize.min,
children: [
CakeImageWidget(
HashImageWidget(
imageUrl: "assets/images/cake_logo_dark.svg",
height: 32,
width: 32,
@@ -175,7 +175,7 @@ class ChangelogItemWidget extends StatelessWidget {
spacing: 12,
children: [
if (item.iconFilename.isNotEmpty)
CakeImageWidget(
HashImageWidget(
imageUrl: "$changelogIconLocation/${item.iconFilename}.svg",
height: 36,
width: 36,
@@ -1,5 +1,5 @@
import 'package:auto_size_text/auto_size_text.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/widgets/new_list_row/new_simple_checkbox.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
@@ -64,7 +64,7 @@ class CoinControlListItem extends StatelessWidget {
children: [
Text(amount, style: TextStyle(fontSize:14,fontWeight: FontWeight.w400,color: Theme.of(context).colorScheme.onSurface),),
if(address.toLowerCase().contains("mweb")) // hack carried over from old ui, we really should just have a boolean in the object
CakeImageWidget(imageUrl:
HashImageWidget(imageUrl:
"assets/new-ui/address-type-picker-icons/mweb.svg",
width: 18,
height: 18,
@@ -72,7 +72,7 @@ class CoinControlListItem extends StatelessWidget {
Theme.of(context).colorScheme.onSurfaceVariant, BlendMode.srcIn),
),
if(isSilentPayment)
CakeImageWidget(imageUrl:
HashImageWidget(imageUrl:
"assets/new-ui/address-type-picker-icons/silent.svg",
width: 18,
height: 18,
@@ -101,7 +101,7 @@ class CoinControlListItem extends StatelessWidget {
fontWeight: FontWeight.w400,
color: Theme.of(context).colorScheme.onSurfaceVariant),
),
CakeImageWidget(imageUrl:
HashImageWidget(imageUrl:
"assets/new-ui/arrow_right.svg",
colorFilter: ColorFilter.mode(
Theme.of(context).colorScheme.onSurfaceVariant, BlendMode.srcIn),
@@ -120,7 +120,7 @@ class CoinControlListItem extends StatelessWidget {
}
if(isFrozen) {
return CakeImageWidget(imageUrl:"assets/new-ui/frozen.svg");
return HashImageWidget(imageUrl:"assets/new-ui/frozen.svg");
}
return NewSimpleCheckbox(value: isSending, onChanged: (value){onCheckBoxTap?.call();});
@@ -9,7 +9,7 @@ import 'package:hash_wallet/new-ui/pages/swap_page.dart';
import 'package:hash_wallet/reactions/wallet_connect.dart';
import 'package:hash_wallet/routes.dart';
import 'package:hash_wallet/src/widgets/alert_with_one_action.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/utils/feature_flag.dart';
import 'package:hash_wallet/utils/payment_request.dart';
import 'package:hash_wallet/utils/show_pop_up.dart';
@@ -44,7 +44,7 @@ class CoinActionRow extends StatelessWidget {
spacing: MediaQuery.of(context).size.width * 0.05,
children: [
CoinActionButton(
icon: CakeImageWidget(imageUrl:
icon: HashImageWidget(imageUrl:
"assets/new-ui/send.svg",
colorFilter: ColorFilter.mode(
Theme.of(context).colorScheme.primary,
@@ -82,7 +82,7 @@ class CoinActionRow extends StatelessWidget {
},
),
CoinActionButton(
icon: CakeImageWidget(imageUrl:
icon: HashImageWidget(imageUrl:
"assets/new-ui/receive.svg",
colorFilter: ColorFilter.mode(
Theme.of(context).colorScheme.primary,
@@ -115,7 +115,7 @@ class CoinActionRow extends StatelessWidget {
),
if (showSwap)
CoinActionButton(
icon: CakeImageWidget(imageUrl:
icon: HashImageWidget(imageUrl:
"assets/new-ui/exchange.svg",
colorFilter: ColorFilter.mode(
Theme.of(context).colorScheme.primary,
@@ -141,7 +141,7 @@ class CoinActionRow extends StatelessWidget {
},
),
CoinActionButton(
icon: CakeImageWidget(imageUrl:
icon: HashImageWidget(imageUrl:
"assets/new-ui/scan.svg",
colorFilter: ColorFilter.mode(
Theme.of(context).colorScheme.primary,
@@ -8,7 +8,7 @@ import 'package:hash_wallet/new-ui/pages/send_page.dart';
import 'package:hash_wallet/new-ui/pages/swap_page.dart';
import 'package:hash_wallet/new-ui/widgets/modern_button.dart';
import 'package:hash_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/utils/payment_request.dart';
import 'package:cw_core/crypto_currency.dart';
import 'package:cw_core/unspent_coin_type.dart';
@@ -77,7 +77,7 @@ class AssetDetailsModal extends StatelessWidget {
child: Stack(
children: [
if (iconPath.isNotEmpty)
CakeImageWidget(imageUrl: iconPath, width: 75, height: 75)
HashImageWidget(imageUrl: iconPath, width: 75, height: 75)
else
Container(
width: 75,
@@ -103,7 +103,7 @@ class AssetDetailsModal extends StatelessWidget {
// color: Colors.white),
// child: Padding(
// padding: const EdgeInsets.all(4.0),
// child: CakeImageWidget(imageUrl:
// child: HashImageWidget(imageUrl:
// chainIconPath,
// width: 18,
// height: 18,
@@ -150,7 +150,7 @@ class AssetDetailsModal extends StatelessWidget {
spacing: 4,
children: [
if (chainIconPath.isNotEmpty)
CakeImageWidget(
HashImageWidget(
imageUrl: chainIconPath,
width: 16,
height: 16,
@@ -2,7 +2,7 @@ import 'dart:math' show min;
import 'package:hash_wallet/new-ui/widgets/coins_page/assets_history/asset_details_modal.dart';
import 'package:hash_wallet/src/screens/wallet_connect/utils/string_parsing.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/view_model/dashboard/balance_view_model.dart';
import 'package:cw_core/crypto_currency.dart';
import 'package:cw_core/wallet_base.dart';
@@ -89,7 +89,7 @@ class AssetTile extends StatelessWidget {
child: Stack(
children: [
if((iconPath).isNotEmpty)
CakeImageWidget(imageUrl: iconPath)
HashImageWidget(imageUrl: iconPath)
else
Container(
width: 36,
@@ -114,7 +114,7 @@ class AssetTile extends StatelessWidget {
// color: Colors.white),
// child: Padding(
// padding: const EdgeInsets.all(2.0),
// child: CakeImageWidget(
// child: HashImageWidget(
// imageUrl: chainIconPath,
// width: 12,
// height: 12,
@@ -3,7 +3,7 @@ import 'package:hash_wallet/new-ui/widgets/line_tab_switcher.dart';
import 'package:hash_wallet/routes.dart';
import 'package:hash_wallet/src/screens/dashboard/widgets/filter_widget.dart';
import 'package:hash_wallet/utils/show_pop_up.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/view_model/dashboard/dashboard_view_model.dart';
import 'package:flutter/material.dart';
@@ -69,7 +69,7 @@ class AssetsTopBar extends StatelessWidget {
child: Row(
spacing: 6,
children: [
CakeImageWidget(
HashImageWidget(
imageUrl: "assets/new-ui/options_slider.svg",
colorFilter: ColorFilter.mode(
Theme.of(context).colorScheme.primary, BlendMode.srcIn)),
@@ -1,5 +1,5 @@
import 'package:hash_wallet/new-ui/widgets/coins_page/assets_history/history_tile_base.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:cw_core/crypto_currency.dart';
import 'package:cw_core/transaction_direction.dart';
import 'package:flutter/material.dart';
@@ -66,7 +66,7 @@ class HistoryTile extends StatelessWidget {
if (asset == CryptoCurrency.btcln) {
return Stack(
children: [
CakeImageWidget(imageUrl:
HashImageWidget(imageUrl:
"assets/new-ui/lightning-icon.svg",
width: 34,
height: 34,
@@ -78,7 +78,7 @@ class HistoryTile extends StatelessWidget {
width: 16,
height: 16,
decoration: BoxDecoration(color: Theme.of(context).colorScheme.onInverseSurface, shape: BoxShape.circle),
child: CakeImageWidget(imageUrl:
child: HashImageWidget(imageUrl:
_getDirectionIconToken(),
colorFilter: ColorFilter.mode(
direction == TransactionDirection.outgoing
@@ -101,7 +101,7 @@ class HistoryTile extends StatelessWidget {
return Stack(children: [
Opacity(
opacity: pending ? 0.5 : 1,
child: CakeImageWidget(imageUrl: asset?.iconPath ??"", width: 34,
child: HashImageWidget(imageUrl: asset?.iconPath ??"", width: 34,
height: 34,),
),
Align(
@@ -113,7 +113,7 @@ class HistoryTile extends StatelessWidget {
color: Colors.white),
child: Padding(
padding: const EdgeInsets.all(2.0),
child: CakeImageWidget(
child: HashImageWidget(
imageUrl: chainIconPath,
width: 12,
height: 12,
@@ -124,7 +124,7 @@ class HistoryTile extends StatelessWidget {
],);
}
return CakeImageWidget(imageUrl:_getDirectionIcon(),
return HashImageWidget(imageUrl:_getDirectionIcon(),
colorFilter: ColorFilter.mode(
direction == TransactionDirection.outgoing
? Theme.of(context).colorScheme.inverseSurface.withAlpha(175)
@@ -1,7 +1,7 @@
import 'package:hash_wallet/exchange/exchange_provider_description.dart';
import 'package:hash_wallet/exchange/trade_state.dart';
import 'package:hash_wallet/new-ui/widgets/coins_page/assets_history/history_tile_base.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:cw_core/crypto_amount_format.dart';
import 'package:cw_core/crypto_currency.dart';
import 'package:flutter/material.dart';
@@ -39,7 +39,7 @@ class HistoryTradeTile extends StatelessWidget {
width: 50,
child: Stack(
children: [
CakeImageWidget(
HashImageWidget(
imageUrl: _getIconPath(from), width: currencyIconSize, height: currencyIconSize),
Positioned(
top: currencyIconSize / 2,
@@ -49,7 +49,7 @@ class HistoryTradeTile extends StatelessWidget {
border:
Border.all(width: 2, color: Theme.of(context).colorScheme.surfaceContainer),
shape: BoxShape.circle),
child: CakeImageWidget(
child: HashImageWidget(
imageUrl: _getIconPath(to),
width: currencyIconSize,
height: currencyIconSize,
@@ -73,7 +73,7 @@ class HistoryTradeTile extends StatelessWidget {
spacing: 4,
children: [
Text(swapState.title),
CakeImageWidget(imageUrl: provider.image, width: 14, height: 14)
HashImageWidget(imageUrl: provider.image, width: 14, height: 14)
],
),
date: date,
@@ -87,7 +87,7 @@ class HistoryTradeTile extends StatelessWidget {
fontWeight: FontWeight.w500)),
Text(from.title, style: TextStyle(color: Theme.of(context).colorScheme.onSurfaceVariant)),
if (fromChainIcon.isNotEmpty)
CakeImageWidget(
HashImageWidget(
imageUrl: fromChainIcon,
width: 12,
height: 12,
@@ -109,7 +109,7 @@ class HistoryTradeTile extends StatelessWidget {
Text(
to.title,
),
if (toChainIcon.isNotEmpty) CakeImageWidget(imageUrl: toChainIcon, width: 12, height: 12)
if (toChainIcon.isNotEmpty) HashImageWidget(imageUrl: toChainIcon, width: 12, height: 12)
],
),
leadingIcon: _getLeadingStack(context),
@@ -6,7 +6,7 @@ import 'package:hash_wallet/routes.dart';
import 'package:hash_wallet/src/screens/transaction_details/confirmations_list_item.dart';
import 'package:hash_wallet/src/screens/transaction_details/transaction_details_list_item.dart';
import 'package:hash_wallet/src/screens/transaction_details/address_list_item.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/widgets/new_list_row/new_list_section.dart';
import 'package:hash_wallet/utils/address_formatter.dart';
import 'package:hash_wallet/view_model/transaction_details_view_model.dart';
@@ -70,7 +70,7 @@ class _TransactionDetailsModalState extends State<TransactionDetailsModal> {
controller: controller,
child: Column(
children: [
CakeImageWidget(
HashImageWidget(
imageUrl: widget.transactionDetailsViewModel.transactionAsset.iconPath ??
"",
width: 64,
@@ -1,5 +1,5 @@
import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:cw_core/card_design.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
@@ -94,7 +94,7 @@ class BalanceCard extends StatelessWidget {
? ClipRSuperellipse(
borderRadius: BorderRadius.circular(borderRadius),
key: ValueKey(design.imagePath),
child: CakeImageWidget(
child: HashImageWidget(
imageUrl: design.imagePath,
width: width,
height: height,
@@ -247,7 +247,7 @@ class BalanceCard extends StatelessWidget {
switchInCurve: Curves.easeInOut,
switchOutCurve: Curves.easeInOut,
child: design.backgroundType == CardDesignBackgroundTypes.svgIcon
? CakeImageWidget(
? HashImageWidget(
imageUrl: design.imagePath,
key: const ValueKey('svgIcon'),
height: iconWidth,
@@ -279,7 +279,7 @@ class BalanceCard extends StatelessWidget {
height: 40,
width: 40,
child: Center(
child: CakeImageWidget(
child: HashImageWidget(
imageUrl: "assets/new-ui/3dots_vertical.svg",
alignment: Alignment.topRight,
colorFilter:
+2 -2
View File
@@ -1,6 +1,6 @@
import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/routes.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/view_model/dashboard/dashboard_view_model.dart';
import 'package:flutter/material.dart';
import 'package:flutter_mobx/flutter_mobx.dart';
@@ -33,7 +33,7 @@ class MwebAd extends StatelessWidget {
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
CakeImageWidget(imageUrl:
HashImageWidget(imageUrl:
"assets/new-ui/settings_row_icons/mweb.svg",
width: 24,
height: 24,
@@ -1,4 +1,4 @@
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/view_model/dashboard/dashboard_view_model.dart';
import 'package:flutter/material.dart';
import 'package:flutter_mobx/flutter_mobx.dart';
@@ -38,7 +38,7 @@ class ChainIcon extends StatelessWidget {
scale: done ? 1 : 0.8,
child: AnimatedSwitcher(
duration: Duration(milliseconds: 150),
child: CakeImageWidget(
child: HashImageWidget(
imageUrl: iconPath,
key: ValueKey(progress >= 1),
width: 36,
@@ -1,4 +1,4 @@
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_svg/flutter_svg.dart';
@@ -48,7 +48,7 @@ class LightningSwitcher extends StatelessWidget {
duration: Duration(milliseconds: 150),
transitionBuilder: (child, animation) =>
FadeTransition(opacity: animation, child: child),
child: CakeImageWidget(imageUrl:'assets/new-ui/switcher-bitcoin.svg',
child: HashImageWidget(imageUrl:'assets/new-ui/switcher-bitcoin.svg',
key: ValueKey(lightningMode),
width: 32,
height: 32,
@@ -64,7 +64,7 @@ class LightningSwitcher extends StatelessWidget {
duration: Duration(milliseconds: 150),
transitionBuilder: (child, animation) =>
FadeTransition(opacity: animation, child: child),
child: CakeImageWidget(imageUrl: 'assets/new-ui/switcher-lightning.svg',
child: HashImageWidget(imageUrl: 'assets/new-ui/switcher-lightning.svg',
key: ValueKey(lightningMode),
width: 32,
height: 32,
@@ -2,7 +2,7 @@ import 'package:hash_wallet/core/sync_status_title.dart';
import 'package:hash_wallet/di.dart';
import 'package:hash_wallet/new-ui/widgets/coins_page/top_bar_widget/pulsing_dot.dart';
import 'package:hash_wallet/src/screens/settings/manage_nodes_page.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/view_model/dashboard/dashboard_view_model.dart';
import 'package:cw_core/sync_status.dart';
import 'package:flutter/material.dart';
@@ -53,7 +53,7 @@ class SyncBar extends StatelessWidget {
spacing: 6,
children: [
if (dashboardViewModel.isTorEnabled)
CakeImageWidget(
HashImageWidget(
imageUrl: "assets/new-ui/tor.svg",
width: 20,
height: 20,
@@ -147,14 +147,14 @@ class SyncBar extends StatelessWidget {
Widget? _getIcon(BuildContext context, Type status) {
if (status == LostConnectionSyncStatus || status == FailedSyncStatus) {
return CakeImageWidget(imageUrl:
return HashImageWidget(imageUrl:
"assets/new-ui/offline.svg",
colorFilter: ColorFilter.mode(Theme.of(context).colorScheme.error, BlendMode.srcIn),
);
}
if (failStatuses.contains(status)) {
return CakeImageWidget(imageUrl:
return HashImageWidget(imageUrl:
"assets/new-ui/warning.svg",
colorFilter: ColorFilter.mode(Theme.of(context).colorScheme.error, BlendMode.srcIn),
);
@@ -163,18 +163,18 @@ class SyncBar extends StatelessWidget {
final List<Widget> children = [];
if (dashboardViewModel.isTorEnabled) {
children.add(CakeImageWidget(imageUrl:"assets/new-ui/tor_sync.svg",
children.add(HashImageWidget(imageUrl:"assets/new-ui/tor_sync.svg",
colorFilter: ColorFilter.mode(Color(0xFF8A38F5), BlendMode.srcIn)));
}
if (dashboardViewModel.hasMweb) {
children.add(CakeImageWidget(imageUrl:
children.add(HashImageWidget(imageUrl:
"assets/new-ui/mweb_sync.svg",
colorFilter:
ColorFilter.mode(Theme.of(context).colorScheme.onSurfaceVariant, BlendMode.srcIn),
));
}
if (dashboardViewModel.hasSilentPayments) {
children.add(CakeImageWidget(imageUrl:
children.add(HashImageWidget(imageUrl:
"assets/new-ui/silent_sync.svg",
colorFilter: ColorFilter.mode(Color(0xFFEFBA5E), BlendMode.srcIn),
));
@@ -1,7 +1,7 @@
import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/new-ui/widgets/new_primary_button.dart';
import 'package:hash_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/view_model/dashboard/dashboard_view_model.dart';
import 'package:flutter/material.dart';
import 'package:flutter_mobx/flutter_mobx.dart';
@@ -138,7 +138,7 @@ class UnconfirmedBalanceModal extends StatelessWidget {
Stack(
alignment: Alignment.bottomRight,
children: [
CakeImageWidget(imageUrl: currencyIconPath, height: 100, width: 100),
HashImageWidget(imageUrl: currencyIconPath, height: 100, width: 100),
Container(
width: 36,
height: 36,
@@ -1,5 +1,5 @@
import 'package:hash_wallet/new-ui/widgets/modern_button.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:cw_core/wallet_info.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
@@ -46,7 +46,7 @@ class WalletInfoBar extends StatelessWidget {
? const SizedBox.shrink(key: ValueKey("empty"))
: Padding(
padding: const EdgeInsets.only(right: 8),
child: CakeImageWidget(imageUrl:
child: HashImageWidget(imageUrl:
hardwareWalletIcon!,
key: ValueKey("hardware_wallet_icon"),
width: 24,
+2 -2
View File
@@ -1,4 +1,4 @@
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
@@ -37,7 +37,7 @@ class DropdownRow extends StatelessWidget {
duration: Duration(milliseconds: 300),
turns: expanded ? 0.0 : 0.5,
curve: Curves.easeOut,
child: CakeImageWidget(
child: HashImageWidget(
imageUrl:
"assets/new-ui/dropdown_arrow.svg",
colorFilter:
@@ -1,6 +1,6 @@
import 'dart:io';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
@@ -74,7 +74,7 @@ class _KeyboardHideButtonState extends State<KeyboardHideButton> {
),
child: Padding(
padding: const EdgeInsets.all(8.0),
child: CakeImageWidget(
child: HashImageWidget(
imageUrl:
"assets/new-ui/hide_keyboard.svg",
colorFilter: ColorFilter.mode(
+2 -2
View File
@@ -1,6 +1,6 @@
import 'dart:ui';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
@@ -75,7 +75,7 @@ class _LongPressMenuState extends State<LongPressMenu> {
mainAxisAlignment: MainAxisAlignment.start,
spacing: 8,
children: [
CakeImageWidget(
HashImageWidget(
imageUrl:
item.iconPath,
height: 20,
+2 -2
View File
@@ -1,4 +1,4 @@
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
@@ -23,7 +23,7 @@ class ModalHeader extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
CakeImageWidget(
HashImageWidget(
imageUrl: iconPath, width: 36, height: 36),
Text(
title,
+2 -2
View File
@@ -1,4 +1,4 @@
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
@@ -42,7 +42,7 @@ class ModernButton extends StatelessWidget {
final resolvedBackgroundColor =
backgroundColor ?? Theme.of(context).colorScheme.surfaceContainer;
final Widget resolvedIcon = svgPath != null
? CakeImageWidget(
? HashImageWidget(
imageUrl: svgPath!,
width: resolvedIconSize,
height: resolvedIconSize,
+3 -3
View File
@@ -2,7 +2,7 @@ import 'dart:io';
import 'package:hash_wallet/new-ui/widgets/new_primary_button.dart';
import 'package:hash_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/widgets/new_list_row/new_simple_checkbox.dart';
import 'package:flutter/material.dart';
import 'package:flutter_mobx/flutter_mobx.dart';
@@ -217,7 +217,7 @@ class PickerSliderButton<Item> extends StatelessWidget {
fontSize: 14,
color: Theme.of(context).colorScheme.onSurfaceVariant,
fontWeight: FontWeight.w400)),
if(isSelected) CakeImageWidget(imageUrl:
if(isSelected) HashImageWidget(imageUrl:
"assets/new-ui/arrow_right.svg",
colorFilter:
ColorFilter.mode(Theme.of(context).colorScheme.primary, BlendMode.srcIn),)
@@ -230,7 +230,7 @@ class PickerSliderButton<Item> extends StatelessWidget {
],
),
isSelected? NewSimpleCheckbox(value: true, onChanged: (val){}):
CakeImageWidget(imageUrl:
HashImageWidget(imageUrl:
"assets/new-ui/arrow_right.svg",
colorFilter:
ColorFilter.mode(Theme.of(context).colorScheme.primary, BlendMode.srcIn),
@@ -1,6 +1,6 @@
import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/new-ui/widgets/receive_page/receive_address_type_selector.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/view_model/dashboard/receive_option_view_model.dart';
import 'package:cw_core/receive_page_option.dart';
import 'package:flutter/material.dart';
@@ -52,7 +52,7 @@ class ReceiveAddressTypeDisplay extends StatelessWidget {
spacing: 12.0,
children: [
if (iconPath != null)
CakeImageWidget(imageUrl:iconPath,
HashImageWidget(imageUrl:iconPath,
width: 24,
height: 24,
colorFilter: ColorFilter.mode(
@@ -1,6 +1,6 @@
import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/widgets/rounded_checkbox.dart';
import 'package:hash_wallet/src/widgets/section_divider.dart';
import 'package:hash_wallet/view_model/dashboard/receive_option_view_model.dart';
@@ -160,7 +160,7 @@ class _ReceiveAddressTypeSelectorState extends State<ReceiveAddressTypeSelector>
ReceiveAddressTypeSelector.otherOptionsExpandDuration,
turns: _otherOptionsExpanded ? 0.0 : 0.5,
curve: Curves.easeOut,
child: CakeImageWidget(imageUrl:"assets/new-ui/dropdown_arrow.svg"))
child: HashImageWidget(imageUrl:"assets/new-ui/dropdown_arrow.svg"))
],
),
),
@@ -280,7 +280,7 @@ class ReceiveAddressTypeRow extends StatelessWidget {
Row(
children: [
if (iconPath != null)
CakeImageWidget(imageUrl:iconPath!, width: iconSize, height: iconSize,colorFilter: ColorFilter.mode(Theme.of(context).colorScheme.onSurfaceVariant,BlendMode.srcIn),)
HashImageWidget(imageUrl:iconPath!, width: iconSize, height: iconSize,colorFilter: ColorFilter.mode(Theme.of(context).colorScheme.onSurfaceVariant,BlendMode.srcIn),)
else
Container(width: iconSize, height: iconSize),
Padding(
@@ -3,7 +3,7 @@ import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/new-ui/widgets/new_primary_button.dart';
import 'package:hash_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
import 'package:hash_wallet/src/screens/exchange/widgets/currency_picker.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/utils/show_pop_up.dart';
import 'package:hash_wallet/view_model/wallet_address_list/wallet_address_list_view_model.dart';
import 'package:cw_core/crypto_currency.dart';
@@ -101,7 +101,7 @@ class _ReceiveAmountModalState extends State<ReceiveAmountModal> {
),
RotatedBox(
quarterTurns: 2,
child: CakeImageWidget(imageUrl:"assets/new-ui/dropdown_arrow.svg"))
child: HashImageWidget(imageUrl:"assets/new-ui/dropdown_arrow.svg"))
],
),
),
@@ -2,7 +2,7 @@ import 'dart:math';
import 'package:hash_wallet/entities/auto_generate_subaddress_status.dart';
import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:cw_core/crypto_currency.dart';
import 'package:cw_core/wallet_type.dart';
import 'package:flutter/material.dart';
@@ -63,7 +63,7 @@ class ReceiveInfoBox extends StatelessWidget {
spacing: 10,
children: [
if(iconPath.isNotEmpty)
CakeImageWidget(imageUrl:
HashImageWidget(imageUrl:
iconPath,
width: 16,
height: 16,
@@ -130,7 +130,7 @@ class InfoboxCurrencyRow extends StatelessWidget {
return Row(
spacing: 8,
children: [
CakeImageWidget(
HashImageWidget(
imageUrl: chainIconPath,
width: 20,
height: 20,
@@ -174,7 +174,7 @@ class InfoboxCurrencyRow extends StatelessWidget {
color: Theme.of(context).colorScheme.surfaceContainer,
width: iconBorder),
borderRadius: BorderRadius.circular(9999999)),
child: CakeImageWidget(
child: HashImageWidget(
imageUrl: entry.value.iconPath,
width: 24,
height: 24,
@@ -1,4 +1,4 @@
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
@@ -23,7 +23,7 @@ class ReceiveLabelWidget extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
children: [
ClipRect(
child: CakeImageWidget(imageUrl:"assets/new-ui/label.svg",
child: HashImageWidget(imageUrl:"assets/new-ui/label.svg",
width: 24,
height: 24,
colorFilter: ColorFilter.mode(
@@ -1,4 +1,4 @@
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
@@ -30,7 +30,7 @@ class ReceiveLargeAmountPreview extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
spacing: 12,
children: [
CakeImageWidget(imageUrl:"assets/new-ui/send.svg",
HashImageWidget(imageUrl:"assets/new-ui/send.svg",
width: 24,
height: 24,
colorFilter: ColorFilter.mode(
@@ -1,6 +1,6 @@
import 'package:hash_wallet/di.dart';
import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/themes/core/theme_store.dart';
import 'package:hash_wallet/view_model/wallet_address_list/wallet_address_list_view_model.dart';
import 'package:cw_core/crypto_currency.dart';
@@ -42,7 +42,7 @@ class ReceiveQrCode extends StatelessWidget {
child: AnimatedOpacity(
duration: animDuration,
opacity: largeQrMode ? 1 : 0,
child: CakeImageWidget(imageUrl:
child: HashImageWidget(imageUrl:
isLightMode
? "assets/new-ui/cakewallet-wordmark-light.svg"
: "assets/new-ui/cakewallet-wordmark.svg",
@@ -116,7 +116,7 @@ class ReceiveQrCode extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
spacing: 4,
children: [
CakeImageWidget(imageUrl:"assets/new-ui/payjoin.svg"),
HashImageWidget(imageUrl:"assets/new-ui/payjoin.svg"),
Text(S.of(context).payjoin_enabled)
],
),
@@ -1,4 +1,4 @@
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/view_model/wallet_address_list/wallet_address_list_view_model.dart';
import 'package:cw_core/wallet_type.dart';
import 'package:flutter/material.dart';
@@ -33,7 +33,7 @@ class ReceiveTokenDisplay extends StatelessWidget {
child: Row(
spacing:4,
children: [
CakeImageWidget(imageUrl:
HashImageWidget(imageUrl:
"assets/new-ui/chain_badges/${walletTypeToString(addressListViewModel.wallet.type).toLowerCase()}.svg",
width: 16,
height: 16,
@@ -1,4 +1,4 @@
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
@@ -18,7 +18,7 @@ class FloatingIconButton extends StatelessWidget {
onTap: onPressed,
child: Padding(
padding: const EdgeInsets.all(4.0),
child: CakeImageWidget(imageUrl:iconPath,
child: HashImageWidget(imageUrl:iconPath,
width: 22, height: 22,
colorFilter: ColorFilter.mode(Theme
.of(context)
@@ -7,7 +7,7 @@ import 'package:hash_wallet/new-ui/widgets/new_primary_button.dart';
import 'package:hash_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
import 'package:hash_wallet/new-ui/widgets/send_page/l2_send_external_modal.dart';
import 'package:hash_wallet/new-ui/widgets/send_page/send_address_input.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/widgets/new_list_row/new_simple_checkbox.dart';
import 'package:hash_wallet/view_model/contact_list/contact_list_view_model.dart';
import 'package:hash_wallet/view_model/send/send_view_model.dart';
@@ -252,7 +252,7 @@ class _L2ActionWalletSelectorState extends State<L2ActionWalletSelector> {
mainAxisAlignment: MainAxisAlignment.center,
spacing: 10,
children: [
CakeImageWidget(imageUrl:
HashImageWidget(imageUrl:
"assets/new-ui/send_from_external.svg",
colorFilter: ColorFilter.mode(
Theme.of(context).colorScheme.primary, BlendMode.srcIn),
@@ -3,7 +3,7 @@ import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/new-ui/widgets/new_primary_button.dart';
import 'package:hash_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
import 'package:hash_wallet/src/screens/receive/widgets/qr_image.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/utils/address_formatter.dart';
import 'package:hash_wallet/view_model/send/send_view_model.dart';
import 'package:cw_core/payment_uris.dart';
@@ -66,7 +66,7 @@ class _L2SendExternalModalState extends State<L2SendExternalModal> {
spacing: 12,
children: [
if(widget.sendViewModel.walletType == WalletType.bitcoin)
CakeImageWidget(imageUrl:"assets/new-ui/lightning_deposit_help.svg", height: 36),
HashImageWidget(imageUrl:"assets/new-ui/lightning_deposit_help.svg", height: 36),
Text(
S.of(context).bitcoin_lightning_deposit,
style: TextStyle(fontWeight: FontWeight.w500, fontSize: 20),
@@ -1,5 +1,5 @@
import 'package:hash_wallet/new-ui/widgets/send_page/floating_icon_button.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_mobx/flutter_mobx.dart';
@@ -109,10 +109,10 @@ class _NewSendAmountInputState extends State<NewSendAmountInput> {
spacing: 8,
children: [
if (widget.hasPicker && widget.currencyIconPath.isNotEmpty)
CakeImageWidget(imageUrl: widget.currencyIconPath, width: 24, height: 24),
HashImageWidget(imageUrl: widget.currencyIconPath, width: 24, height: 24),
Text(widget.currency),
if (widget.hasPicker)
CakeImageWidget(imageUrl:
HashImageWidget(imageUrl:
"assets/new-ui/chooser.svg",
width: 12,
height: 12,
@@ -2,7 +2,7 @@ import 'package:hash_wallet/core/execution_state.dart';
import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/new-ui/widgets/confirm_swiper.dart';
import 'package:hash_wallet/new-ui/widgets/new_primary_button.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/view_model/send/send_view_model.dart';
import 'package:hash_wallet/view_model/send/send_view_model_state.dart';
import 'package:cw_core/wallet_info.dart';
@@ -122,7 +122,7 @@ class TransactionErrorActions extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
spacing: 8,
children: [
CakeImageWidget(imageUrl:
HashImageWidget(imageUrl:
"assets/new-ui/warning.svg",
height: 24,
width: 24,
@@ -193,7 +193,7 @@ class HardwareWalletConfirmationMessage extends StatelessWidget {
padding: const EdgeInsets.all(12.0),
child: Column(spacing: 8, children: [
if (hardwareWalletIcon != null)
CakeImageWidget(imageUrl:
HashImageWidget(imageUrl:
hardwareWalletIcon!,
width: 36,
height: 36,
@@ -6,7 +6,7 @@ import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/new-ui/widgets/animated_dropdown.dart';
import 'package:hash_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
import 'package:hash_wallet/new-ui/widgets/send_page/send_confirm_bottom_widget.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/utils/address_formatter.dart';
import 'package:hash_wallet/view_model/send/send_view_model.dart';
import 'package:hash_wallet/view_model/send/send_view_model_state.dart';
@@ -119,7 +119,7 @@ class SendTransactionDetails extends StatelessWidget {
spacing: 8,
children: [
if (resolvedIconPath.toLowerCase().endsWith(".svg"))
CakeImageWidget(imageUrl:
HashImageWidget(imageUrl:
resolvedIconPath,
width: 28,
height: 28,
@@ -418,7 +418,7 @@ class TransactionCommitedScreen extends StatelessWidget {
S.of(context).transaction_sent_new,
style: TextStyle(fontSize: 24, fontWeight: FontWeight.w600),
),
Image.asset(width: 256, height: 256, "assets/images/birthday_cake.png")
Image.asset(width: 256, height: 256, "assets/images/hash_bag.png")
],
),
);
@@ -2,7 +2,7 @@ import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/new-ui/widgets/new_primary_button.dart';
import 'package:hash_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
import 'package:hash_wallet/new-ui/widgets/send_page/send_address_input.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:cw_core/crypto_currency.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
@@ -52,7 +52,7 @@ class _RefundAddressModalState extends State<RefundAddressModal> {
child: Column(
spacing: 24,
children: [
CakeImageWidget(
HashImageWidget(
imageUrl:"assets/new-ui/refund_address.svg",
colorFilter:
ColorFilter.mode(Theme.of(context).colorScheme.primary, BlendMode.srcIn),
@@ -1,7 +1,7 @@
import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
import 'package:hash_wallet/new-ui/widgets/send_page/send_address_input.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/widgets/new_list_row/new_simple_checkbox.dart';
import 'package:hash_wallet/view_model/exchange/exchange_view_model.dart';
import 'package:cw_core/currency_for_wallet_type.dart';
@@ -153,7 +153,7 @@ class _SwapAddressSelectionModalState extends State<SwapAddressSelectionModal> {
mainAxisAlignment: MainAxisAlignment.center,
spacing: 10,
children: [
CakeImageWidget(imageUrl:"assets/new-ui/send_from_external.svg",
HashImageWidget(imageUrl:"assets/new-ui/send_from_external.svg",
colorFilter: ColorFilter.mode(
Theme.of(context).colorScheme.primary, BlendMode.srcIn)),
Text(S.of(context).send_from_external,
@@ -272,7 +272,7 @@ class _SwapAddressSelectionModalRowState extends State<SwapAddressSelectionModal
duration: Duration(milliseconds: 200),
curve: Curves.easeOutCubic,
turns: _isExpanded ? 0 : 0.5,
child:CakeImageWidget(imageUrl:
child:HashImageWidget(imageUrl:
"assets/new-ui/dropdown_arrow.svg",
colorFilter: ColorFilter.mode(
Theme.of(context).colorScheme.onSurfaceVariant, BlendMode.srcIn),
@@ -316,7 +316,7 @@ class _SwapAddressSelectionModalRowState extends State<SwapAddressSelectionModal
child: Row(
spacing: 12,
children: [
CakeImageWidget(imageUrl:
HashImageWidget(imageUrl:
"assets/new-ui/account.svg",
colorFilter: ColorFilter.mode(
Theme.of(context).colorScheme.onSurfaceVariant,
@@ -1,7 +1,7 @@
import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/new-ui/widgets/new_primary_button.dart';
import 'package:hash_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
@@ -24,7 +24,7 @@ class SwapProviderInitialPreferenceModal extends StatelessWidget {
child: Column(
spacing: 12,
children: [
CakeImageWidget(imageUrl:"assets/new-ui/exchange_providers.svg"),
HashImageWidget(imageUrl:"assets/new-ui/exchange_providers.svg"),
Text(
"${S.of(context).swap_provider_initial_desc} Hash Bags.",
textAlign: TextAlign.center,
+2 -2
View File
@@ -1,5 +1,5 @@
import 'package:hash_wallet/src/screens/base_page.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/widgets/gradient_background.dart';
import 'package:hash_wallet/src/widgets/primary_button.dart';
import 'package:hash_wallet/utils/responsive_layout_util.dart';
@@ -56,7 +56,7 @@ abstract class InfoPage extends BasePage {
),
child: AspectRatio(
aspectRatio: 0.9,
child: CakeImageWidget(imageUrl: image),
child: HashImageWidget(imageUrl: image),
),
),
),
+1 -1
View File
@@ -436,7 +436,7 @@ class BuySellPage extends BasePage {
currencies: buySellViewModel.cryptoCurrencies,
onCurrencySelected: (currency) => buySellViewModel.changeCryptoCurrency(currency: currency),
imageArrow: Image.asset(
'assets/images/arrow_bottom_cake_green.png',
'assets/images/arrow_bottom_green.png',
color: Theme.of(context).colorScheme.primary,
height: 8,
),
@@ -8,7 +8,7 @@ import 'package:hash_wallet/src/screens/base_page.dart';
import 'package:hash_wallet/src/screens/dashboard/widgets/filter_list_widget.dart';
import 'package:hash_wallet/src/screens/wallet_list/filtered_list.dart';
import 'package:hash_wallet/src/widgets/alert_with_two_actions.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/widgets/gradient_background.dart';
import 'package:hash_wallet/src/widgets/standard_list.dart';
import 'package:hash_wallet/utils/address_formatter.dart';
@@ -283,7 +283,7 @@ class _ContactPageBodyState extends State<ContactPageBody> with SingleTickerProv
Widget _buildCurrencyIcon(ContactBase contact) {
final image = contact.type.iconPath;
return image != null
? CakeImageWidget(imageUrl: image, height: 24, width: 24)
? HashImageWidget(imageUrl: image, height: 24, width: 24)
: const SizedBox(height: 24, width: 24);
}
}
@@ -1,4 +1,4 @@
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:flutter/material.dart';
class SideMenuItem extends StatelessWidget {
@@ -47,7 +47,7 @@ class SideMenuItem extends StatelessWidget {
color: _setColor(context),
size: 30,
)
: CakeImageWidget(
: HashImageWidget(
imageUrl: imagePath ?? '',
fit: BoxFit.cover,
height: 30,
@@ -5,7 +5,7 @@ import 'package:hash_wallet/src/widgets/address_text_field.dart';
import 'package:hash_wallet/src/widgets/alert_with_one_action.dart';
import 'package:hash_wallet/src/widgets/alert_with_two_actions.dart';
import 'package:hash_wallet/src/widgets/base_text_form_field.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/widgets/checkbox_widget.dart';
import 'package:hash_wallet/src/widgets/primary_button.dart';
import 'package:hash_wallet/src/widgets/scrollable_with_bottom_section.dart';
@@ -394,7 +394,7 @@ class _EditTokenPageBodyState extends State<EditTokenPageBody> {
alignment: Alignment.center,
children: [
ClipOval(
child: CakeImageWidget(
child: HashImageWidget(
imageUrl: _tokenIconPathController.text,
width: 75,
height: 75,
@@ -11,7 +11,7 @@ import 'package:hash_wallet/src/screens/base_page.dart';
import 'package:hash_wallet/src/screens/dashboard/favorite_token_modal.dart';
import 'package:hash_wallet/src/screens/settings/widgets/settings_cell_with_arrow.dart';
import 'package:hash_wallet/src/widgets/base_text_form_field.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/screens/settings/widgets/settings_picker_cell.dart';
import 'package:hash_wallet/src/screens/settings/widgets/settings_switcher_cell.dart';
import 'package:hash_wallet/src/widgets/new_list_row/new_list_section.dart';
@@ -189,7 +189,7 @@ class HomeSettingsPage extends BasePage {
leading: Container(
clipBehavior: Clip.hardEdge,
decoration: BoxDecoration(shape: BoxShape.circle),
child: CakeImageWidget(
child: HashImageWidget(
imageUrl: token.iconPath,
height: 40,
width: 40,
@@ -5,7 +5,7 @@ import 'package:hash_wallet/src/screens/base_page.dart';
import 'package:hash_wallet/anonpay/anonpay_donation_link_info.dart';
import 'package:hash_wallet/entities/preferences_key.dart';
import 'package:hash_wallet/src/screens/receive/anonpay_receive_page.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:cw_core/receive_page_option.dart';
import 'package:hash_wallet/src/screens/dashboard/widgets/present_receive_option_picker.dart';
import 'package:hash_wallet/src/widgets/gradient_background.dart';
@@ -182,7 +182,7 @@ class AddressPage extends BasePage {
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
CakeImageWidget(
HashImageWidget(
imageUrl: addressListViewModel.monoImage,
height: 16,
width: 16,
@@ -230,7 +230,7 @@ class AddressPage extends BasePage {
borderRadius: BorderRadius.circular(24),
),
child: ClipOval(
child: CakeImageWidget(
child: HashImageWidget(
height: 35,
width: 35,
imageUrl: walletImages[i],
@@ -5,7 +5,7 @@ import 'package:hash_wallet/bitcoin/bitcoin.dart';
import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/routes.dart';
import 'package:hash_wallet/src/screens/exchange_trade/information_page.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/themes/core/theme_extension.dart';
import 'package:hash_wallet/utils/payment_request.dart';
import 'package:hash_wallet/utils/show_pop_up.dart';
@@ -179,7 +179,7 @@ class BalanceRowWidget extends StatelessWidget {
child: Column(
crossAxisAlignment: CrossAxisAlignment.end,
children: [
CakeImageWidget(
HashImageWidget(
imageUrl: currency.iconPath,
height: 40,
width: 40,
@@ -3,7 +3,7 @@ import 'dart:io';
import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/new-ui/widgets/apps_widget.dart';
import 'package:hash_wallet/routes.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/widgets/dashboard_card_widget.dart';
import 'package:hash_wallet/utils/feature_flag.dart';
import 'package:hash_wallet/view_model/dashboard/cake_features_view_model.dart';
@@ -4,7 +4,7 @@ import 'package:hash_wallet/entities/wallet_nft_response.dart';
import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/src/screens/base_page.dart';
import 'package:hash_wallet/src/screens/dashboard/widgets/menu_widget.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/widgets/gradient_background.dart';
import 'package:hash_wallet/view_model/dashboard/dashboard_view_model.dart';
@@ -102,7 +102,7 @@ class _NFTImageWidget extends StatelessWidget {
),
color: Theme.of(context).colorScheme.surface,
),
child: CakeImageWidget(imageUrl: imageUrl),
child: HashImageWidget(imageUrl: imageUrl),
);
}
}
@@ -1,4 +1,4 @@
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/widgets/dashboard_card_widget.dart';
import 'package:flutter/material.dart';
@@ -86,7 +86,7 @@ class InfoCard extends StatelessWidget {
color: Theme.of(context).colorScheme.surfaceContainer,
shape: BoxShape.circle,
),
child: CakeImageWidget(
child: HashImageWidget(
imageUrl: image,
height: 40,
width: 40,
@@ -1,6 +1,6 @@
import 'dart:io';
import 'dart:ui';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:flutter/material.dart';
import 'package:flutter_mobx/flutter_mobx.dart';
import 'package:flutter_svg/flutter_svg.dart';
@@ -220,7 +220,7 @@ class _NEWNewMainNavBarState extends State<NewMainNavBar> {
builder: (context, value, child) {
return Container(
height: NewMainNavBar.barHeight,
child: CakeImageWidget(imageUrl:
child: HashImageWidget(imageUrl:
visibleActions[i].image,
width: iconWidth,
height: iconHeight,
@@ -1,7 +1,7 @@
import 'package:hash_wallet/entities/wallet_nft_response.dart';
import 'package:hash_wallet/routes.dart';
import 'package:hash_wallet/src/screens/dashboard/pages/nft_details_page.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:flutter/material.dart';
class NFTTileWidget extends StatelessWidget {
@@ -45,7 +45,7 @@ class NFTTileWidget extends StatelessWidget {
),
color: Theme.of(context).colorScheme.surface,
),
child: CakeImageWidget(
child: HashImageWidget(
imageUrl: nftAsset.normalizedMetadata?.imageUrl,
),
),
@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'package:hash_wallet/entities/solana_nft_asset_model.dart';
import 'package:hash_wallet/routes.dart';
import 'package:hash_wallet/src/screens/dashboard/pages/nft_details_page.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
class SolanaNFTTileWidget extends StatelessWidget {
const SolanaNFTTileWidget({super.key, required this.nftAsset});
@@ -49,7 +49,7 @@ class SolanaNFTTileWidget extends StatelessWidget {
),
color: Theme.of(context).colorScheme.surface,
),
child: CakeImageWidget(
child: HashImageWidget(
imageUrl: nftAsset.imageOriginalUrl,
),
),
@@ -49,7 +49,7 @@ class ExchangeTemplatePage extends BasePage {
height: 8,
);
final arrowBottomCakeGreen = Image.asset(
'assets/images/arrow_bottom_cake_green.png',
'assets/images/arrow_bottom_green.png',
color: Theme.of(context).colorScheme.primary,
height: 8,
);
@@ -363,7 +363,7 @@ class ExchangeTradeState extends State<ExchangeTradeForm> {
return InfoBottomSheet(
footerType: FooterType.singleActionButton,
titleText: S.of(bottomSheetContext).transaction_sent,
contentImage: 'assets/images/birthday_cake.png',
contentImage: 'assets/images/hash_bag.png',
singleActionButtonText: S.of(bottomSheetContext).close,
singleActionButtonKey: ValueKey('send_page_sent_dialog_ok_button_key'),
onSingleActionButtonPressed: () {
@@ -277,7 +277,7 @@ class DEuroSavingsPage extends BasePage {
builder: (BuildContext bottomSheetContext) => InfoBottomSheet(
footerType: FooterType.singleActionButton,
titleText: S.of(bottomSheetContext).transaction_sent,
contentImage: 'assets/images/birthday_cake.png',
contentImage: 'assets/images/hash_bag.png',
content: S.of(bottomSheetContext).deuro_tx_commited_content,
singleActionButtonText: S.of(bottomSheetContext).close,
singleActionButtonKey: ValueKey('send_page_sent_dialog_ok_button_key'),
@@ -3,7 +3,7 @@ import 'dart:math';
import 'package:auto_size_text/auto_size_text.dart';
import 'package:hash_wallet/entities/fiat_currency.dart';
import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/themes/core/theme_extension.dart';
import 'package:cw_core/crypto_currency.dart';
import 'package:flutter/cupertino.dart';
@@ -268,7 +268,7 @@ class SavingsCard extends StatelessWidget {
child: Center(
child: Column(
children: [
CakeImageWidget(
HashImageWidget(
imageUrl: currency.iconPath,
height: 40,
width: 40,
@@ -9,7 +9,7 @@ import 'package:hash_wallet/src/screens/base_page.dart';
import 'package:hash_wallet/src/screens/new_wallet/widgets/select_button.dart';
import 'package:hash_wallet/src/widgets/alert_with_one_action.dart';
import 'package:hash_wallet/src/widgets/base_text_form_field.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/widgets/gradient_background.dart';
import 'package:hash_wallet/src/widgets/picker.dart';
import 'package:hash_wallet/src/widgets/primary_button.dart';
@@ -157,7 +157,7 @@ class _WalletNameFormState extends State<WalletNameForm> {
child: AspectRatio(
aspectRatio: aspectRatioImage,
child: FittedBox(
child: CakeImageWidget(imageUrl: widget.walletImage),
child: HashImageWidget(imageUrl: widget.walletImage),
fit: BoxFit.contain,
),
),
@@ -7,7 +7,7 @@ import 'package:hash_wallet/reactions/wallet_utils.dart';
import 'package:hash_wallet/routes.dart';
import 'package:hash_wallet/src/screens/base_page.dart';
import 'package:hash_wallet/src/screens/new_wallet/widgets/select_button.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/widgets/primary_button.dart';
import 'package:hash_wallet/src/widgets/scrollable_with_bottom_section.dart';
import 'package:hash_wallet/src/widgets/search_bar_widget.dart';
@@ -135,7 +135,7 @@ class WalletTypeFormState extends State<WalletTypeForm> {
padding: EdgeInsets.only(top: 12),
child: SelectButton(
key: ValueKey('new_wallet_type_${type.name}_button_key'),
image: CakeImageWidget(
image: HashImageWidget(
imageUrl: getCryptoCurrencyIconForWalletListItem(type),
height: 24,
width: 24,
@@ -1,5 +1,5 @@
import 'package:hash_wallet/core/new_wallet_arguments.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/widgets/gradient_background.dart';
import 'package:hash_wallet/src/widgets/primary_button.dart';
import 'package:cw_core/wallet_type.dart';
@@ -31,7 +31,7 @@ class WalletGroupDescriptionPage extends BasePage {
child: Column(
children: [
SizedBox(height: 48),
CakeImageWidget(
HashImageWidget(
imageUrl: currentTheme.isDark
? 'assets/new-ui/hero/wallet_group_options_dark.svg'
: 'assets/new-ui/hero/wallet_group_options_light.svg',
@@ -3,7 +3,7 @@ import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/routes.dart';
import 'package:hash_wallet/src/screens/base_page.dart';
import 'package:hash_wallet/src/screens/new_wallet/widgets/grouped_wallet_expansion_tile.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/widgets/primary_button.dart';
import 'package:hash_wallet/themes/core/material_base_theme.dart';
import 'package:hash_wallet/view_model/wallet_groups_display_view_model.dart';
@@ -94,7 +94,7 @@ class WalletGroupsDisplayBody extends StatelessWidget {
title: wallet.name,
isSelected:
walletGroupsDisplayViewModel.selectedSingleWallet == wallet,
leadingWidget: CakeImageWidget(
leadingWidget: HashImageWidget(
imageUrl: getCryptoCurrencyIconForWalletListItem(wallet.type),
width: 32,
height: 32,
@@ -168,7 +168,7 @@ class WalletGroupEmptyStateWidget extends StatelessWidget {
Widget build(BuildContext context) {
return Column(
children: [
CakeImageWidget(
HashImageWidget(
imageUrl: currentTheme.isDark
? 'assets/new-ui/hero/wallet_group_empty_dark.svg'
: 'assets/new-ui/hero/wallet_group_empty_light.svg',
@@ -1,7 +1,7 @@
import 'package:hash_wallet/generated/i18n.dart';
import 'package:hash_wallet/routes.dart';
import 'package:hash_wallet/src/screens/base_page.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/widgets/gradient_background.dart';
import 'package:hash_wallet/src/widgets/primary_button.dart';
import 'package:flutter/material.dart';
@@ -33,7 +33,7 @@ class WalletGroupExistingSeedDescriptionPage extends BasePage {
padding: EdgeInsets.all(24),
child: Column(
children: [
CakeImageWidget(
HashImageWidget(
imageUrl: currentTheme.isDark ? walletGroupConfirmedImageDark : walletGroupConfirmedImageLight,
height: 200
),
@@ -1,4 +1,4 @@
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:cw_core/currency_for_wallet_type.dart';
import 'package:flutter/material.dart';
import 'package:hash_wallet/view_model/wallet_list/wallet_list_item.dart';
@@ -129,7 +129,7 @@ class GroupedWalletExpansionTile extends StatelessWidget {
)
: SizedBox(width: 7),
SizedBox(width: 24),
CakeImageWidget(
HashImageWidget(
imageUrl: getCryptoCurrencyIconForWalletListItem(item.type),
width: 32,
height: 32,
@@ -5,7 +5,7 @@ import 'package:hash_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
import 'package:hash_wallet/src/screens/nodes/widgets/node_form.dart';
import 'package:hash_wallet/src/widgets/alert_with_one_action.dart';
import 'package:hash_wallet/src/widgets/alert_with_two_actions.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/src/widgets/primary_button.dart';
import 'package:hash_wallet/src/widgets/scrollable_with_bottom_section.dart';
import 'package:hash_wallet/utils/show_pop_up.dart';
@@ -90,7 +90,7 @@ class _NodeCreateOrEditPageState extends State<NodeCreateOrEditPage> {
title: widget.editingNode != null ? S.current.edit_node : S.current.node_new,
leadingIcon: Icon(Icons.arrow_back_ios_new),
onLeadingPressed: Navigator.of(context).pop,
trailingIcon: CakeImageWidget(imageUrl:
trailingIcon: HashImageWidget(imageUrl:
"assets/new-ui/scan.svg",width:24,height:24,
colorFilter: ColorFilter.mode(Theme.of(context).colorScheme.primary, BlendMode.srcIn),
),
@@ -4,7 +4,7 @@ import 'package:hash_wallet/new-ui/widgets/receive_page/receive_top_bar.dart';
import 'package:hash_wallet/src/screens/nodes/widgets/node_form.dart';
import 'package:hash_wallet/src/widgets/alert_with_one_action.dart';
import 'package:hash_wallet/src/widgets/alert_with_two_actions.dart';
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:hash_wallet/utils/show_pop_up.dart';
import 'package:hash_wallet/view_model/node_list/node_create_or_edit_view_model.dart';
import 'package:cw_core/node.dart';
@@ -82,7 +82,7 @@ class _PowNodeCreateOrEditPageState extends State<PowNodeCreateOrEditPage> {
title: widget.editingNode != null ? S.current.edit_node : S.current.node_new,
leadingIcon: Icon(Icons.arrow_back_ios_new),
onLeadingPressed: Navigator.of(context).pop,
trailingIcon: CakeImageWidget(imageUrl:
trailingIcon: HashImageWidget(imageUrl:
"assets/new-ui/scan.svg",width:24,height:24,
colorFilter: ColorFilter.mode(Theme.of(context).colorScheme.primary, BlendMode.srcIn),
),
@@ -1,4 +1,4 @@
import 'package:hash_wallet/src/widgets/cake_image_widget.dart';
import 'package:hash_wallet/src/widgets/hash_image_widget.dart';
import 'package:cw_core/utils/print_verbose.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
@@ -25,7 +25,7 @@ class QrImage extends StatelessWidget {
@override
Widget build(BuildContext context) {
final imagePath = embeddedImagePath ?? 'assets/images/qr-cake.png';
final imagePath = embeddedImagePath ?? 'assets/images/qr-hashbag.png';
final isSvg = imagePath.endsWith('.svg');
if (isSvg) {
@@ -44,7 +44,7 @@ class QrImage extends StatelessWidget {
backgroundColor: backgroundColor,
padding: const EdgeInsets.all(12.0),
),
CakeImageWidget(imageUrl:
HashImageWidget(imageUrl:
imagePath,
width: logoSize * 0.8,
height: logoSize * 0.8,

Some files were not shown because too many files have changed in this diff Show More