nank1ro / flutter-shadcn-ui

shadcn-ui ported in Flutter. Awesome UI components for Flutter, fully customizable.
https://mariuti.com/shadcn-ui
MIT License
957 stars 59 forks source link

ShadToast closeIcon not showing on android (Works on web / Linux) #167

Open SnoozeFreddo opened 2 hours ago

SnoozeFreddo commented 2 hours ago

Steps to reproduce

final snackBar = ShadToast(
        closeIcon: const Icon(Icons.close, color: Colors.white),
        title: Text('Order deleted successfully.'),
        duration: const Duration(seconds: 5),
      );
      ShadToaster.of(context).show(snackBar);

Expected results

A close button to appear at the top right corner.

Actual results

No x Icon.

shadcn_ui version

^0.13.0

Platform

Android

Code sample


Screenshots or Video

Screenshots / Video demonstration [Upload media here]

Logs

Logs ```console [Paste your logs here] ```

Flutter Doctor output


nank1ro commented 2 hours ago

Can you try changing the color of the icon to something else than white?

SnoozeFreddo commented 2 hours ago

Changing color had no effect.

nank1ro commented 2 hours ago

Does it work if you use ShadImage with a LucideIcon instead? Will check your code on Monday