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, bottom: 12.0,
top: 16.0, top: 16.0,
), ),
background: Column( background: SafeArea(
mainAxisAlignment: MainAxisAlignment.start, child: Column(
children: [ mainAxisAlignment: MainAxisAlignment.start,
const SizedBox(height: 72.0), children: [
if (widget.hasHeroIcon) widget.heroIconWidget, const SizedBox(height: 72.0),
], if (widget.hasHeroIcon) widget.heroIconWidget,
],
),
), ),
), ),
); );