Skip to content

Commit b1dcf96

Browse files
authored
Merge pull request #290 from bggRGjQaUbCoE/fix-toast-padding
fix updating toast offset multiple times
2 parents 75b746e + 7c60c2d commit b1dcf96

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/src/widget/helper/toast_helper.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ class _ToastHelperState extends State<ToastHelper> with WidgetsBindingObserver {
8484
}
8585

8686
bool _updateSelfInfo() {
87+
if (selfOffset != null) {
88+
return true;
89+
}
90+
8791
final childContext = _childContext;
8892
if (!(childContext?.mounted ?? false)) {
8993
selfOffset = null;

0 commit comments

Comments
 (0)