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

How to give separated border/container to each tab? #24

Open
ShiyanaSam opened this issue Dec 5, 2023 · 1 comment
Open

How to give separated border/container to each tab? #24

ShiyanaSam opened this issue Dec 5, 2023 · 1 comment

Comments

@ShiyanaSam
Copy link

How to give separated border/container to each tab?

@bemain
Copy link

bemain commented Oct 28, 2024

I'm not entirely sure what your intended behaviour is. If you want to add a border on each side of the selected tab you can do so by using the following code:

SegmentedTabControl(
    indicatorDecoration: BoxDecoration(
        border: const Border.symmetric(vertical: BorderSide()),
    ),
    ...
)

You can also add borders to the sides of the entire bar by changing the barDecoration:

SegmentedTabControl(
    barDecoration: BoxDecoration(
        border: const Border.symmetric(vertical: BorderSide()),
    ),
    ...
)

If you want to add borders between each tab, I'm not able to find a way to do that at the moment.

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

2 participants