Issue
I am currently doing something like this
new Tab(icon: new Icon(Icons.arrow_forward), text: "Browse"),
However I would like to use an image as an icon . I get images using
new Image.asset("assets/img/logo.png"),
My question is how can i use that image as an icon in my tab shown above ?
Solution
As per documentation Tab icon property ask a widget so you can pass like this also or any other widget also
new Tab(icon: new Image.asset("assets/img/logo.png"), text: "Browse"),
Answered By - Robin Sinha
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.