Files
jwinterm 7e368f92e6 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.
2026-08-07 02:57:29 -04:00

103 lines
3.9 KiB
Dart

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/hash_image_widget.dart';
import 'package:cw_core/crypto_currency.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
class RefundAddressModal extends StatefulWidget {
const RefundAddressModal(
{super.key, this.isFromWalletSelection = false, required this.selectedCurrency});
final bool isFromWalletSelection;
final CryptoCurrency selectedCurrency;
@override
State<RefundAddressModal> createState() => _RefundAddressModalState();
}
class _RefundAddressModalState extends State<RefundAddressModal> {
final addressController = TextEditingController();
bool _textEntered = false;
@override
void initState() {
super.initState();
addressController.addListener(() {
setState(() {
_textEntered = addressController.text.isNotEmpty;
});
});
}
@override
Widget build(BuildContext context) {
return Container(
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.surface,
borderRadius: BorderRadius.vertical(top: Radius.circular(16))),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
ModalTopBar(
title: S.of(context).set_refund_address,
trailingIcon: Icon(Icons.close),
onTrailingPressed: Navigator.of(context).pop,
),
SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16.0),
child: Column(
spacing: 24,
children: [
HashImageWidget(
imageUrl:"assets/new-ui/refund_address.svg",
colorFilter:
ColorFilter.mode(Theme.of(context).colorScheme.primary, BlendMode.srcIn),
),
Text(
S.of(context).return_address_desc +
(widget.isFromWalletSelection
? "\n\n${S.of(context).return_address_desc_external}"
: ""),
textAlign: TextAlign.center,
style: TextStyle(
color: Theme.of(context).colorScheme.onSurfaceVariant,
fontSize: 14,
fontWeight: FontWeight.w400),
),
Column(
spacing: 12,
children: [
NewSendAddressInput(
bottomPadding: true,
addressController: addressController,
selectedCurrency: widget.selectedCurrency,
onEditingComplete: () {}),
if (widget.isFromWalletSelection || _textEntered)
NewPrimaryButton(
onPressed: () {
Navigator.of(context).pop(addressController.text);
},
text: !_textEntered ? S.of(context).skip_set_later : S.of(context).continue_text,
color: addressController.text.isEmpty
? Theme.of(context).colorScheme.surfaceContainer
: Theme.of(context).colorScheme.primary,
textColor: addressController.text.isEmpty
? Theme.of(context).colorScheme.primary
: Theme.of(context).colorScheme.onPrimary)
],
),
SizedBox()
],
),
),
)
],
),
);
}
}