WIP: integration with ledger

This commit is contained in:
Arseni
2026-02-04 02:01:22 +03:00
parent f1f16a30e6
commit f44ef56ff3
32 changed files with 1226 additions and 405 deletions

View File

@@ -2,15 +2,16 @@ import 'package:flutter/material.dart';
import 'package:pweb/generated/i18n/app_localizations.dart';
class WalletTopUpHeader extends StatelessWidget {
final VoidCallback onBack;
final String? tokenSymbol;
final String? sourceLabel;
const WalletTopUpHeader({
super.key,
required this.onBack,
this.tokenSymbol,
this.sourceLabel,
});
@override
@@ -20,24 +21,18 @@ class WalletTopUpHeader extends StatelessWidget {
final symbol = tokenSymbol?.trim();
final subtitle = [
loc.paymentTypeCryptoWallet,
sourceLabel ?? loc.paymentTypeCryptoWallet,
if (symbol != null && symbol.isNotEmpty) symbol,
].join(' · ');
return Row(
children: [
IconButton(
icon: const Icon(Icons.arrow_back),
onPressed: onBack,
),
IconButton(icon: const Icon(Icons.arrow_back), onPressed: onBack),
const SizedBox(width: 8),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
loc.walletTopUpTitle,
style: theme.textTheme.titleLarge,
),
Text(loc.walletTopUpTitle, style: theme.textTheme.titleLarge),
const SizedBox(height: 4),
Text(
subtitle,