Motion-Toast icon indicating copy to clipboard operation
Motion-Toast copied to clipboard

Error dissmising toast

Open varodpg opened this issue 11 months ago • 1 comments

Hi, I don't know if it's an error or that it's not in the functionality, but I would like to know if it's possible or if it's a bug. When displaying a toast, the app stops working until the toast disappears. Yes the property dissmisable works, which makes that if you click on the toast disappears, but I would like that if I touch on another site of my application, the toast disappears or at least still being able to use the application, but in this case, it remains frozen until the toast disappears.

Thank you!

My code:

MotionToast.success(
     description: const Text('Notification deleted'),
     position: MotionToastPosition.bottom,
    dismissable: true,
).show(context)

varodpg avatar Jan 11 '25 23:01 varodpg

thanks for your feedback @varodpg this already an ongoing task I'll push it to pub.dev in the next release

koukibadr avatar Jan 12 '25 19:01 koukibadr

any update?

Elevencode avatar Mar 13 '25 04:03 Elevencode

@Elevencode @varodpg new version is published resolving this issue check it out v2.12.0

koukibadr avatar Mar 16 '25 09:03 koukibadr

Hi @koukibadr ! Thanks for the effort but i'm having a compilation error with the new version:

../../.pub-cache/hosted/pub.dev/motion_toast-2.12.0/lib/widgets/motion_toast_background.dart:27:32: Error: The method 'withValues' isn't defined for the class 'Color'.
 - 'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
        color: backgroundColor.withValues(

Can you check it? Thanks!!

varodpg avatar Mar 17 '25 00:03 varodpg

Okay I'll check it sure

koukibadr avatar Mar 17 '25 00:03 koukibadr

@varodpg I've published a new version fix this compilation error v2.12.1

koukibadr avatar Mar 17 '25 08:03 koukibadr

Thank you very much!! Works perfect!

varodpg avatar Mar 18 '25 20:03 varodpg