From d36e034ba5af0d6cc7354306f221c25ac6592749 Mon Sep 17 00:00:00 2001 From: malik1004x Date: Fri, 13 Mar 2026 15:09:13 +0100 Subject: [PATCH] remove layout-breaking safearea (#3073) --- .../coins_page/top_bar_widget/top_bar.dart | 60 +++++++++---------- 1 file changed, 29 insertions(+), 31 deletions(-) diff --git a/lib/new-ui/widgets/coins_page/top_bar_widget/top_bar.dart b/lib/new-ui/widgets/coins_page/top_bar_widget/top_bar.dart index 419c7d259..7ff15da91 100644 --- a/lib/new-ui/widgets/coins_page/top_bar_widget/top_bar.dart +++ b/lib/new-ui/widgets/coins_page/top_bar_widget/top_bar.dart @@ -25,37 +25,35 @@ class TopBar extends StatelessWidget { @override Widget build(BuildContext context) { - return SafeArea( - child: Padding( - padding: EdgeInsets.only(bottom: 10, left: 18, right:18, top: 10+_additionalTopPadding(context)), - child: Observer( - builder: (_) => Row( - spacing: 12, - children: [ - (dashboardViewModel.hasLightning) - ? LightningSwitcher( - lightningMode: lightningMode, - onLightningSwitchPress: onLightningSwitchPress, - ) - : ChainIcon( - iconPath: dashboardViewModel.wallet.currency.flatIconPath ?? "", - dashboardViewModel: dashboardViewModel, - isSyncHeavy: dashboardViewModel.isSyncHeavy), - SyncBar( - dashboardViewModel: dashboardViewModel, - isSyncHeavy: dashboardViewModel.isSyncHeavy, - ), - ModernButton.svg( - iconColor: Theme.of(context).colorScheme.primary, - size: 36, - onPressed: () { - HapticFeedback.mediumImpact(); - onSettingsButtonPress(); - }, - svgPath: "assets/new-ui/top-settings.svg", - ), - ], - ), + return Padding( + padding: EdgeInsets.only(bottom: 10, left: 18, right:18, top: 10+_additionalTopPadding(context)), + child: Observer( + builder: (_) => Row( + spacing: 12, + children: [ + (dashboardViewModel.hasLightning) + ? LightningSwitcher( + lightningMode: lightningMode, + onLightningSwitchPress: onLightningSwitchPress, + ) + : ChainIcon( + iconPath: dashboardViewModel.wallet.currency.flatIconPath ?? "", + dashboardViewModel: dashboardViewModel, + isSyncHeavy: dashboardViewModel.isSyncHeavy), + SyncBar( + dashboardViewModel: dashboardViewModel, + isSyncHeavy: dashboardViewModel.isSyncHeavy, + ), + ModernButton.svg( + iconColor: Theme.of(context).colorScheme.primary, + size: 36, + onPressed: () { + HapticFeedback.mediumImpact(); + onSettingsButtonPress(); + }, + svgPath: "assets/new-ui/top-settings.svg", + ), + ], ), ), );