Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): keep toasts off the dynamic island when keyboard is open (#29159)

Santo Shakilcda499f2b548
diff --git a/mobile/lib/widgets/common/immich_toast.dart b/mobile/lib/widgets/common/immich_toast.dart
index 3e7ab273d8..1da07f419d 100644
--- a/mobile/lib/widgets/common/immich_toast.dart
+++ b/mobile/lib/widgets/common/immich_toast.dart
@@ -50,9 +50,10 @@ class ImmichToast {
),
),
positionedToastBuilder: (context, child, gravity) {
+ final isTop = gravity == ToastGravity.TOP;
return Positioned(
- top: gravity == ToastGravity.TOP ? 150 : null,
- bottom: gravity == ToastGravity.BOTTOM ? 150 : null,
+ top: isTop ? 150 : null,
+ bottom: isTop ? null : 150 + MediaQuery.of(context).viewInsets.bottom,
left: MediaQuery.of(context).size.width / 2 - 150,
right: MediaQuery.of(context).size.width / 2 - 150,
child: IgnorePointer(child: child),