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

Separate widgets for tabs and content areas #13

Open
ngugcx opened this issue Aug 12, 2022 · 4 comments
Open

Separate widgets for tabs and content areas #13

ngugcx opened this issue Aug 12, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@ngugcx
Copy link

ngugcx commented Aug 12, 2022

Sometimes tab_area and content_area are not placed together.
It will be more flexiable if they can be seperated.

@caduandrade caduandrade added the question Further information is requested label Aug 13, 2022
@caduandrade caduandrade self-assigned this Aug 13, 2022
@caduandrade
Copy link
Owner

Hi @ngugcx !

Sorry. I didn't really understand the problem. Could you describe it with an example?

Are you wanting to change the gap between content areas and tabs? If so, you can change the theme with something like this:

TabbedViewTheme(
        child: tabbedView,
        data: TabbedViewThemeData(
            tabsArea: TabsAreaThemeData(color: Colors.yellow),
            contentArea: ContentAreaThemeData(
                padding: EdgeInsets.zero,
                decoration: BoxDecoration(color: Colors.blue))));

It is also possible to have different settings for the selected tab. So only this one can have an extra gap.

@ngugcx
Copy link
Author

ngugcx commented Aug 13, 2022

Like Chrome, the tabs can be put together with the min/max/close buttons, and the content area can be put somewhere else. They are separated widgets, not tightly connected with each other in UI.

Just like the relationship of the Qt widgets, QTabBar and QStackedWidget.

@caduandrade
Copy link
Owner

Cool, got it. The current component doesn't allow instantiating its parts as separate widgets. I didn't think of that use case. I need to think about how I could do that.

@caduandrade caduandrade changed the title How to seperate tab_area and content_area? Separate widgets for tabs and content areas Aug 14, 2022
@caduandrade caduandrade added enhancement New feature or request and removed question Further information is requested labels Aug 14, 2022
@caduandrade
Copy link
Owner

Probably the biggest problem would be the dropdown menu.

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