From 63448ab267754d7735fb8f3d3a0013ef16fa733a Mon Sep 17 00:00:00 2001 From: Arseni Date: Fri, 26 Dec 2025 15:04:41 +0300 Subject: [PATCH] got rid of deprecated methods --- frontend/pweb/lib/pages/wallet_top_up/address_block.dart | 4 ++-- frontend/pweb/lib/pages/wallet_top_up/info_chip.dart | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/pweb/lib/pages/wallet_top_up/address_block.dart b/frontend/pweb/lib/pages/wallet_top_up/address_block.dart index bfba856..a8e8c84 100644 --- a/frontend/pweb/lib/pages/wallet_top_up/address_block.dart +++ b/frontend/pweb/lib/pages/wallet_top_up/address_block.dart @@ -52,7 +52,7 @@ class WalletTopUpAddressBlock extends StatelessWidget { decoration: BoxDecoration( borderRadius: BorderRadius.circular(dimensions.borderRadiusSmall), border: Border.all(color: theme.colorScheme.outlineVariant), - color: theme.colorScheme.surfaceVariant.withOpacity(0.4), + color: theme.colorScheme.surfaceContainerHighest.withValues(alpha: 0.4), ), child: SelectableText( address, @@ -72,7 +72,7 @@ class WalletTopUpAddressBlock extends StatelessWidget { decoration: BoxDecoration( borderRadius: BorderRadius.circular(dimensions.borderRadiusSmall), border: Border.all(color: theme.colorScheme.outlineVariant), - color: theme.colorScheme.surfaceVariant.withOpacity(0.4), + color: theme.colorScheme.surfaceContainerHighest.withValues(alpha: 0.4), ), child: Center( child: QrImageView( diff --git a/frontend/pweb/lib/pages/wallet_top_up/info_chip.dart b/frontend/pweb/lib/pages/wallet_top_up/info_chip.dart index fcb2ffc..fd16971 100644 --- a/frontend/pweb/lib/pages/wallet_top_up/info_chip.dart +++ b/frontend/pweb/lib/pages/wallet_top_up/info_chip.dart @@ -23,7 +23,7 @@ class WalletTopUpInfoChip extends StatelessWidget { decoration: BoxDecoration( borderRadius: BorderRadius.circular(dimensions.borderRadiusSmall), border: Border.all(color: theme.colorScheme.outlineVariant), - color: theme.colorScheme.surfaceVariant.withOpacity(0.4), + color: theme.colorScheme.surfaceContainerHighest.withValues(alpha: 0.4), ), child: Column( crossAxisAlignment: CrossAxisAlignment.start,