remove layout-breaking safearea (#3073)

malik1004x committed Mar 13, 2026 at 15:09 UTC d36e034ba5af0d6cc7354306f221c25ac6592749
1 file changed +29 -31
lib/new-ui/widgets/coins_page/top_bar_widget/top_bar.dart
+29 -31
@@ -25,37 +25,35 @@ class TopBar extends StatelessWidget {
25
26 @override
27 Widget build(BuildContext context) {
28 - return SafeArea(
29 - child: Padding(
30 - padding: EdgeInsets.only(bottom: 10, left: 18, right:18, top: 10+_additionalTopPadding(context)),
31 - child: Observer(
32 - builder: (_) => Row(
33 - spacing: 12,
34 - children: [
35 - (dashboardViewModel.hasLightning)
36 - ? LightningSwitcher(
37 - lightningMode: lightningMode,
38 - onLightningSwitchPress: onLightningSwitchPress,
39 - )
40 - : ChainIcon(
41 - iconPath: dashboardViewModel.wallet.currency.flatIconPath ?? "",
42 - dashboardViewModel: dashboardViewModel,
43 - isSyncHeavy: dashboardViewModel.isSyncHeavy),
44 - SyncBar(
45 - dashboardViewModel: dashboardViewModel,
46 - isSyncHeavy: dashboardViewModel.isSyncHeavy,
47 - ),
48 - ModernButton.svg(
49 - iconColor: Theme.of(context).colorScheme.primary,
50 - size: 36,
51 - onPressed: () {
52 - HapticFeedback.mediumImpact();
53 - onSettingsButtonPress();
54 - },
55 - svgPath: "assets/new-ui/top-settings.svg",
56 - ),
57 - ],
58 - ),
28 + return Padding(
29 + padding: EdgeInsets.only(bottom: 10, left: 18, right:18, top: 10+_additionalTopPadding(context)),
30 + child: Observer(
31 + builder: (_) => Row(
32 + spacing: 12,
33 + children: [
34 + (dashboardViewModel.hasLightning)
35 + ? LightningSwitcher(
36 + lightningMode: lightningMode,
37 + onLightningSwitchPress: onLightningSwitchPress,
38 + )
39 + : ChainIcon(
40 + iconPath: dashboardViewModel.wallet.currency.flatIconPath ?? "",
41 + dashboardViewModel: dashboardViewModel,
42 + isSyncHeavy: dashboardViewModel.isSyncHeavy),
43 + SyncBar(
44 + dashboardViewModel: dashboardViewModel,
45 + isSyncHeavy: dashboardViewModel.isSyncHeavy,
46 + ),
47 + ModernButton.svg(
48 + iconColor: Theme.of(context).colorScheme.primary,
49 + size: 36,
50 + onPressed: () {
51 + HapticFeedback.mediumImpact();
52 + onSettingsButtonPress();
53 + },
54 + svgPath: "assets/new-ui/top-settings.svg",
55 + ),
56 + ],
57 ),
58 ),
59 );