This commit fixes #1 and brings other improvements
This commit is contained in:
58
apps/apps.py
58
apps/apps.py
@ -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',
|
||||
[
|
||||
|
Reference in New Issue
Block a user