Make homepage cards use actual cards and not containers
This commit is contained in:
parent
481e988aff
commit
4c355b9455
1 changed files with 36 additions and 31 deletions
|
@ -8,39 +8,44 @@ def HomePage():
|
||||||
ft.Text((_("Home")), size=30, weight="bold"),
|
ft.Text((_("Home")), size=30, weight="bold"),
|
||||||
ft.Text("\n", size=30, weight="bold"),
|
ft.Text("\n", size=30, weight="bold"),
|
||||||
ft.Row([
|
ft.Row([
|
||||||
ft.Container( # Timetable Card
|
ft.Card(
|
||||||
content=ft.Column([
|
content=ft.Container( # Timetable Card
|
||||||
ft.Row([
|
content=ft.Column([
|
||||||
ft.Icon(ft.Icons.BACKPACK_OUTLINED, size=32, color="#FFFFFF"),
|
ft.Row([
|
||||||
ft.Text((_("Timetable")), size=24, font_family="Roboto", weight="bold")
|
ft.Icon(ft.Icons.BACKPACK_OUTLINED, size=32, color="#FFFFFF"),
|
||||||
|
ft.Text((_("Timetable")), size=24, font_family="Roboto", weight="bold")
|
||||||
|
]),
|
||||||
|
ft.ListView(
|
||||||
|
controls=[
|
||||||
|
ft.Placeholder()
|
||||||
|
],
|
||||||
|
expand=True,
|
||||||
|
spacing=10,
|
||||||
|
padding=10,
|
||||||
|
auto_scroll=False
|
||||||
|
)
|
||||||
]),
|
]),
|
||||||
ft.ListView(
|
#margin=20,
|
||||||
controls=[
|
padding=10,
|
||||||
ft.Placeholder()
|
alignment=ft.alignment.top_left,
|
||||||
],
|
),
|
||||||
expand=True,
|
|
||||||
spacing=10,
|
|
||||||
padding=10,
|
|
||||||
auto_scroll=False
|
|
||||||
)
|
|
||||||
]),
|
|
||||||
margin=20,
|
|
||||||
padding=10,
|
|
||||||
alignment=ft.alignment.top_left,
|
|
||||||
bgcolor=ft.Colors.SURFACE_CONTAINER_HIGHEST,
|
|
||||||
width=420,
|
width=420,
|
||||||
height=270,
|
height=275,
|
||||||
border_radius=10,
|
|
||||||
),
|
),
|
||||||
ft.Container( # Recent Grades Card
|
|
||||||
content=RecentGradesColumn(), # Use the imported function here
|
ft.Card(
|
||||||
margin=20,
|
content=ft.Container( # Recent Grades Card
|
||||||
padding=10,
|
content=RecentGradesColumn(), # Use the imported function here
|
||||||
alignment=ft.alignment.top_left,
|
#margin=20,
|
||||||
bgcolor=ft.Colors.SURFACE_CONTAINER_HIGHEST,
|
padding=10,
|
||||||
|
alignment=ft.alignment.top_left,
|
||||||
|
#bgcolor=ft.Colors.SURFACE_CONTAINER_HIGHEST,
|
||||||
|
#width=420,
|
||||||
|
#height=270,
|
||||||
|
#border_radius=10
|
||||||
|
),
|
||||||
width=420,
|
width=420,
|
||||||
height=270,
|
height=275,
|
||||||
border_radius=10,
|
),
|
||||||
)
|
]),
|
||||||
])
|
|
||||||
])
|
])
|
Loading…
Add table
Reference in a new issue