Open laterdayi opened 5 months ago
bot_toast
toastification
void handle() {
toastification.dismissAll();
toastification.show(
type: ToastificationType.error,
style: ToastificationStyle.flatColored,
title: const Text('Fail),
alignment: Alignment.bottomCenter,
showProgressBar: false,
autoCloseDuration: const Duration(seconds: 4),
animationBuilder: (
context,
c,
alignment,
child,
) {
return Transform.translate(
offset: Tween<Offset>(
begin: const Offset(0, 40),
end: const Offset(0, 0),
).evaluate(c),
child: Transform.scale(
scale: Tween<double>(begin: 0.7, end: 1.0).evaluate(c),
child: Opacity(
opacity: c.value,
child: child,
),
),
);
},
);
}
I'm expecting the animations to be consistent when I switch to toastification
Thanks @laterdayi for this issue
Have you tried this?
dissmissAll method has an argument that you can set.
toastification.dismissAll(delayForAnimation: false);
I have to double check this issue
I set the parameters, but these problems still exist @payam-zahedi
toastification.dismissAll(delayForAnimation: false);
toastification.show(
type: ToastificationType.error,
style: ToastificationStyle.flatColored,
title: const Text('Fail'),
alignment: Alignment.bottomCenter,
showProgressBar: false,
autoCloseDuration: const Duration(seconds: 4),
animationBuilder: (
context,
animation,
alignment,
child,
) {
return Transform.translate(
offset: Tween<Offset>(
begin: const Offset(0, 40),
end: const Offset(0, 0),
).evaluate(animation),
child: Transform.scale(
scale: Tween<double>(begin: 0.7, end: 1.0).evaluate(animation),
child: Opacity(
opacity: animation.value,
child: child,
),
),
);
},
);
https://github.com/payam-zahedi/toastification/assets/122137647/9b39e5c3-ed5c-40df-825a-afa8aaaf67d3
I re-summarized the problem
https://github.com/payam-zahedi/toastification/assets/122137647/740c5a4d-8b54-49cd-a392-f75e511daeb1
This is about the first time the pop-up is slow, the first time is always slow, after the click is normal speed
Is there a plan to fix it? @payam-zahedi
Hey @laterdayi Basicly this is not a bug,
It's a new feature that we have to add to the package
This is a feature that helps user to only show one toast in screen.
For now, I'm not sure most of the users need this.
So let's give it more time
This should be a series of side effects brought about by manually closing all, resulting in the inability to manually close all
Let me try it in this weekend to see how we can deal with it
Thanks for your help, looking forward to it
Let me try it in this weekend to see how we can deal with it
I feel that the author has provided such a good plug-in. At present, I feel that the toastification.show pop-up does have a delay of about 300 milliseconds. I hope the author can help us check it. Thank you very much.
any update @payam-zahedi
I have been using
bot_toast
before and I want to switch totoastification
, but I encountered some problems, I hope the author can solve themtoast
before displaying, but the animation position will be wrongHow should these problems be solved
@payam-zahedi