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
I'm using this library which, BTW, works as a charm. That being said, I need for some cases to add an icon to the tab text. Something similar to the image example:
Right now, it's not possible to add anything else than a String as content of a Segment Tab. It would be wonderful to be able to replace String label with Widget label.
If previous proposal is too hard to accomplish, maybe a simpler version would be to add a property to SegmentTab class such as leadingIcon and/or trailingIcon and it should work as expected.
Thank you so much in advance!
The text was updated successfully, but these errors were encountered:
I've been looking for a way to do the same thing. I think the more general approach of letting the label be any Widget would be desirable. Another option would be to use the Tab widget, since it is often used together with the standard TabBar
I'm using this library which, BTW, works as a charm. That being said, I need for some cases to add an icon to the tab text. Something similar to the image example:
Right now, it's not possible to add anything else than a String as content of a Segment Tab. It would be wonderful to be able to replace
String label
withWidget label
.If previous proposal is too hard to accomplish, maybe a simpler version would be to add a property to
SegmentTab
class such asleadingIcon
and/ortrailingIcon
and it should work as expected.Thank you so much in advance!
The text was updated successfully, but these errors were encountered: