You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the icon can be made an SVG you can add it to a font. After doing this you'll be able to add the custom icon, CustomIcons.trash, to the IconData icon field. Something like https://www.fluttericon.com comes in very handy here. For more info search 'flutter custom icons'.
Sidenote: the icon SVG container must be a square.
How can i use icon from image asset?
SlidableAction( onPressed: null, backgroundColor: Color(0xFFEEB4B0), foregroundColor: Colors.white, icon: Image.asset('assets/icon/trash.png'), label: 'Delete', ),
The text was updated successfully, but these errors were encountered: