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

TabView - expose tab border color and tab selected color #1024

Open
AlastairOZ opened this issue Feb 20, 2024 · 0 comments
Open

TabView - expose tab border color and tab selected color #1024

AlastairOZ opened this issue Feb 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@AlastairOZ
Copy link

I have a suggestion for the TabView

It would be nice if you could expose the tab border color and tab selected color

In _tab class:

        decoration: BoxDecoration(
          borderRadius: borderRadius,

          // if selected, the background is painted by _TabPainter
          color: widget.selected ? null : backgroundColor,
        ),

Suggested change:

        decoration: BoxDecoration(
          borderRadius: borderRadius,
          border: Border(
            top: BorderSide(color: widget.tabBorderColor ?? Colors.transparent),
            left: BorderSide(color: widget.tabBorderColor ?? Colors.transparent),
            right: BorderSide(color: widget.tabBorderColor ?? Colors.transparent),
          ),
          // if selected, the background is painted by _TabPainter
          color: widget.selected ? widget.tabSelectedColor : backgroundColor,
        ),
@bdlukaa bdlukaa added help wanted Extra attention is needed enhancement New feature or request and removed help wanted Extra attention is needed labels Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants