Skip to content

Commit bca5bec

Browse files
authored
Merge pull request #55 from JDI-Group/redesign
fix: Support new h3 method
2 parents a6f696f + 669640e commit bca5bec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/common/components/snackbar/snackbar.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,11 @@ void showSnackBar({
9898
? MediaQuery.of(
9999
context,
100100
).size.height -
101-
285
101+
350
102102
: 0,
103103
top: SnackBarPosition.top == snackBarPosition
104-
? MediaQuery.of(context).padding.top
104+
? MediaQuery.of(context).viewInsets.bottom +
105+
MediaQuery.of(context).padding.bottom
105106
: 0.0,
106107
),
107108
duration: const Duration(seconds: 4),
@@ -223,6 +224,5 @@ void showSnackBar({
223224
);
224225

225226
RootScaffoldMessenger.key.currentState?.clearSnackBars();
226-
ScaffoldMessenger.of(context).clearSnackBars();
227227
RootScaffoldMessenger.showSnackBar(snackBar);
228228
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
1818
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
1919
# In Windows, build-name is used as the major, minor, and patch parts
2020
# of the product and file versions while build-number is used as the build suffix.
21-
version: 2.0.7
21+
version: 2.0.8
2222

2323
environment:
2424
sdk: ">=2.19.0 <=3.6.1"

0 commit comments

Comments
 (0)