WIP: integration with ledger
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user