-
Notifications
You must be signed in to change notification settings - Fork 607
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Duplicate Check
- I have searched the opened issues and there are no duplicates
Describe the bug
If expand or height is set, it works with horizontal=True; otherwise shows grey/blank screen.
Code sample
Code
import flet as ft
logging.basicConfig(level=logging.DEBUG)
def main(page: ft.Page):
page.title = "GridView Example"
page.theme_mode = ft.ThemeMode.LIGHT
page.update()
page.add(
ft.GridView(
horizontal=True,
# expand=1,
max_extent=150,
controls=[
ft.Container(ft.Text("Item 1"), bgcolor=ft.Colors.AMBER),
ft.Container(ft.Text("Item 2"), bgcolor=ft.Colors.AMBER),
ft.Container(ft.Text("Item 3"), bgcolor=ft.Colors.AMBER),
],
),
)
page.update()
ft.run(main)To reproduce
- Run repro code
- You will not see the GridView, just blank screen
Expected behavior
No response
Screenshots / Videos
Captures
[Upload media here]
Operating System
macOS
Operating system details
macOs
Flet version
0.69.0
Regression
I'm not sure / I don't know
Suggestions
No response
Logs
Logs
[Paste your logs here]Additional details
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working