payam-zahedi / toastification

Toastification is a Flutter package for displaying customizable toast messages. It provides predefined widgets for success, error, warning, and info messages, as well as a custom widget for flexibility. With Toastification, you can add and manage multiple toast messages at the same time with ease.
https://payamzahedi.com/toastification/
BSD 3-Clause "New" or "Revised" License
564 stars 39 forks source link

Cannot hide the icon if the style is FlatColored #121

Closed sandunrajitha closed 1 month ago

sandunrajitha commented 1 month ago

Describe the bug I tried to hide the icon by setting showIcon: false and the style to ToastificationStyle.flatColored But the toast still shows the default icon. But I can hide the icon successfully for other styles.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://payamzahedi.com/toastification/
  2. Set the style to ToastificationStyle.flatColored
  3. Set showIcon: false
  4. And preview on screen

Expected behavior Icon should be hidden.

Screenshots

Screenshot 2024-08-09 at 4 41 31 PM

Flutter information:

payam-zahedi commented 1 month ago

Hey @sandunrajitha

Thanks for opening this issue, Yes you are right.

we can fix it in the next version.

Also, if you are interested, you can take a look at it and try to fix it.

sandunrajitha commented 1 month ago

@payam-zahedi Thank you fro the quick reply. Let me try to do it over this weekend.