Skip to content

Commit 35e8c51

Browse files
committed
🚑️ Quick fix for the _throwIfNoContext
1 parent 446bc7a commit 35e8c51

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/src/core/toast.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ void dismissAllToast({bool showAnim = false}) {
180180
}
181181

182182
void _throwIfNoContext(Iterable<BuildContext> contexts, String methodName) {
183+
if (contexts.isNotEmpty) {
184+
return;
185+
}
183186
final List<DiagnosticsNode> information = <DiagnosticsNode>[
184187
ErrorSummary('No OKToast widget found.'),
185188
ErrorDescription(

0 commit comments

Comments
 (0)