Open behzad-tg opened 1 month ago
@behzad-tg Hey behzad
Thanks for opening this issue
Can you give me more information
What is your Toastification version?
What is your platform that you are running the app?
toastification: ^2.0.0 platfrom: Android
This is what I got:
Error: AnimationController.dispose() called more than once.
A given AnimationController cannot be disposed more than once.
The following AnimationController object was disposed multiple times:
AnimationController#c0508(⏮ 0.000; paused; DISPOSED)
../dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 297:3 throw_
../packages/flutter/src/animation/animation_controller.dart 823:9 <fn>
../packages/flutter/src/animation/animation_controller.dart 833:14 dispose
../packages/flutter/src/widgets/animated_scroll_view.dart 1198:55 <fn>
../dart-sdk/lib/async/zone.dart 1661:54 runUnary
../dart-sdk/lib/async/future_impl.dart 162:18 handleValue
It's triggering the debugger.
This is my code:
toastification.show(
context: context,
icon: const Icon(
Icons.check),
title:
const Text("Saved"),
alignment: Alignment
.bottomCenter,
primaryColor:
Colors.white,
showProgressBar: false,
backgroundColor:
Colors.green,
foregroundColor:
Colors.white);
this error happend when alignment set to bottomCenter, other direction is fine
E/flutter (12475): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: 'package:flutter/src/widgets/overlay.dart': Failed assertion: line 207 pos 12: '_overlay != null': is not true. E/flutter (12475): #0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:51:61) E/flutter (12475): #1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:40:5) E/flutter (12475): #2 OverlayEntry.remove (package:flutter/src/widgets/overlay.dart:207:12) E/flutter (12475): #3 ToastificationManager.dismiss. (package:toastification/src/core/toastification_manager.dart:147:28)
E/flutter (12475): #4 new Future.delayed. (dart:async/future.dart:423:39)
E/flutter (12475): #5 Timer._createTimer. (dart:async-patch/timer_patch.dart:18:15)
E/flutter (12475): #6 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)
E/flutter (12475): #7 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
E/flutter (12475): #8 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
E/flutter (12475):