Skip to content

[v1] Container's decoration not rendered inside Tabs #5486

@oussama-gourari

Description

@oussama-gourari

Using a container inside ft.Tabs will render the content but not the decoration like bgcolor.

Example code to reproduce:

import flet as ft


def main(page: ft.Page):
    tabs = ft.Tabs(
        tabs=[
            ft.Tab(
                label=ft.Text("Tab 1"),
                content=ft.Container(
                    width=350,
                    height=170,
                    content=ft.Text("Tab 1 content here"),
                    bgcolor=ft.Colors.GREEN,
                ),
            ),
        ],
    )
    page.add(tabs)


ft.run(main)

Screenshot:

Image

Flet version: 0.70.0.dev5103
Python: cpython-3.13.5-linux-x86_64-gnu
OS: Manjaro Linux x86_64
Kernel: Linux 6.12.39-1-MANJARO
Desktop Environment: GNOME 48.3

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions