fix: alert close button clipping under navbar (#2715)

This commit is contained in:
malik1004x
2025-12-09 04:18:07 +02:00
committed by GitHub
parent 3bdfb5bc97
commit a2e4e463b5
+21 -19
View File
@@ -18,25 +18,27 @@ class AlertCloseButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
final button = GestureDetector(
onTap: onTap ?? () => Navigator.of(context).pop(),
child: Semantics(
label: S.of(context).close,
button: true,
enabled: true,
child: Container(
height: 42,
width: 42,
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.onSurface,
shape: BoxShape.circle,
),
child: Center(
child: image ??
Image.asset(
'assets/images/close.png',
color: Theme.of(context).colorScheme.surface,
),
final button = SafeArea(
child: GestureDetector(
onTap: onTap ?? () => Navigator.of(context).pop(),
child: Semantics(
label: S.of(context).close,
button: true,
enabled: true,
child: Container(
height: 42,
width: 42,
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.onSurface,
shape: BoxShape.circle,
),
child: Center(
child: image ??
Image.asset(
'assets/images/close.png',
color: Theme.of(context).colorScheme.surface,
),
),
),
),
),