From 2c11bf777d607aaa93de26e23b5cb9b0fc9c5669 Mon Sep 17 00:00:00 2001 From: Inex Code Date: Fri, 8 Nov 2024 15:59:46 +0300 Subject: [PATCH] fix(ui): Fix hero icon position on mobile screens with cutouts --- lib/ui/layouts/brand_hero_screen.dart | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/ui/layouts/brand_hero_screen.dart b/lib/ui/layouts/brand_hero_screen.dart index 56acf597..a58ea124 100644 --- a/lib/ui/layouts/brand_hero_screen.dart +++ b/lib/ui/layouts/brand_hero_screen.dart @@ -183,12 +183,14 @@ class _HeroSliverAppBarState extends State { bottom: 12.0, top: 16.0, ), - background: Column( - mainAxisAlignment: MainAxisAlignment.start, - children: [ - const SizedBox(height: 72.0), - if (widget.hasHeroIcon) widget.heroIconWidget, - ], + background: SafeArea( + child: Column( + mainAxisAlignment: MainAxisAlignment.start, + children: [ + const SizedBox(height: 72.0), + if (widget.hasHeroIcon) widget.heroIconWidget, + ], + ), ), ), );