mirror of
https://github.com/immich-app/immich.git
synced 2026-07-15 01:21:29 +00:00
fix(mobile): keep toasts off the dynamic island when keyboard is open (#29159)
This commit is contained in:
parent
12b7cd066b
commit
cda499f2b5
1 changed files with 3 additions and 2 deletions
|
|
@ -50,9 +50,10 @@ class ImmichToast {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
positionedToastBuilder: (context, child, gravity) {
|
positionedToastBuilder: (context, child, gravity) {
|
||||||
|
final isTop = gravity == ToastGravity.TOP;
|
||||||
return Positioned(
|
return Positioned(
|
||||||
top: gravity == ToastGravity.TOP ? 150 : null,
|
top: isTop ? 150 : null,
|
||||||
bottom: gravity == ToastGravity.BOTTOM ? 150 : null,
|
bottom: isTop ? null : 150 + MediaQuery.of(context).viewInsets.bottom,
|
||||||
left: MediaQuery.of(context).size.width / 2 - 150,
|
left: MediaQuery.of(context).size.width / 2 - 150,
|
||||||
right: MediaQuery.of(context).size.width / 2 - 150,
|
right: MediaQuery.of(context).size.width / 2 - 150,
|
||||||
child: IgnorePointer(child: child),
|
child: IgnorePointer(child: child),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue