Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Icons inside SegmentTab widget #32

Open
ToniCancela-SpartApp opened this issue Sep 18, 2024 · 2 comments
Open

Using Icons inside SegmentTab widget #32

ToniCancela-SpartApp opened this issue Sep 18, 2024 · 2 comments

Comments

@ToniCancela-SpartApp
Copy link

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:

image

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!

@bemain
Copy link

bemain commented Oct 28, 2024

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

@teotsakalos
Copy link

I'm also having this issue. Would be great if we had the ability to add a custom widget title that overrides the label completely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants