fix(ui): Fix hero icon position on mobile screens with cutouts

This commit is contained in:
Inex Code 2024-11-08 15:59:46 +03:00
parent 8775f35c0d
commit 2c11bf777d

View file

@ -183,12 +183,14 @@ class _HeroSliverAppBarState extends State<HeroSliverAppBar> {
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,
],
),
),
),
);