This commit fixes #1 and brings other improvements

This commit is contained in:
2024-04-21 07:52:10 +00:00
parent 887dfcc088
commit e94762b85c
8 changed files with 167 additions and 80 deletions

View File

@ -68,7 +68,9 @@ def Apps(page: ft.Page):
height=60,
border_radius=10,
ink=True,
on_click=None,
on_click=lambda _: page.go(
'/apps/dhiraagu',
),
),
ft.Container(
content=ft.Text(
@ -95,7 +97,9 @@ def Apps(page: ft.Page):
height=60,
border_radius=10,
ink=True,
on_click=None,
on_click=lambda _: page.go(
'/apps/dhiraagu',
),
),
ft.Container(
content=ft.Text(
@ -122,7 +126,9 @@ def Apps(page: ft.Page):
height=60,
border_radius=10,
ink=True,
on_click=None,
on_click=lambda _: page.go(
'/apps/dhiraagu',
),
),
ft.Container(
content=ft.Text(
@ -149,7 +155,9 @@ def Apps(page: ft.Page):
height=60,
border_radius=10,
ink=True,
on_click=None,
on_click=lambda _: page.go(
'/apps/dhiraagu',
),
),
ft.Container(
content=ft.Text(
@ -217,7 +225,9 @@ def Apps(page: ft.Page):
height=60,
border_radius=10,
ink=True,
on_click=None,
on_click=lambda _: page.go(
'/apps/dhiraagu',
),
),
ft.Container(
content=ft.Text(
@ -244,7 +254,9 @@ def Apps(page: ft.Page):
height=60,
border_radius=10,
ink=True,
on_click=None,
on_click=lambda _: page.go(
'/apps/dhiraagu',
),
),
ft.Container(
content=ft.Text(
@ -271,7 +283,9 @@ def Apps(page: ft.Page):
height=60,
border_radius=10,
ink=True,
on_click=None,
on_click=lambda _: page.go(
'/apps/dhiraagu',
),
),
ft.Container(
content=ft.Text(
@ -298,7 +312,9 @@ def Apps(page: ft.Page):
height=60,
border_radius=10,
ink=True,
on_click=None,
on_click=lambda _: page.go(
'/apps/dhiraagu',
),
),
ft.Container(
content=ft.Text(
@ -390,6 +406,32 @@ def Apps(page: ft.Page):
),
),
)
if not AppRow.controls:
AppRow.controls.append(
ft.Container(
content=ft.Card(
content=ft.Container(
content=ft.Container(
ft.Text(
'Add a module from settings to see shortcuts here.',
text_align=ft.TextAlign.CENTER,
),
),
padding=10,
on_click=None,
),
),
),
)
if not appList.content.controls:
appList.content.controls.append(
ft.Text(
'Add a module from settings to see shortcuts here.',
text_align=ft.TextAlign.CENTER,
),
)
appList.alignment = ft.alignment.center
appList.expand = True
return AppView(
'/apps',
[