-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathViews.py
55 lines (46 loc) · 1.68 KB
/
Views.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import flet as ft
from Login import *
login = LoginPage()
def Home_call(page):
print("Adding home view", flush=True)
page.views.append(
ft.View(
"/",
[
login
],
padding=0,horizontal_alignment='center',
vertical_alignment="center",
bgcolor=ft.colors.YELLOW_100
)
)
page.update()
return page.views
def Dashboard_call(page):
print("Adding home view", flush=True)
page.views.append(
ft.View(
"/dashboard",
[
ft.AppBar(
leading=ft.IconButton(icon=ft.icons.ARROW_BACK,icon_color='white',on_click= lambda _: page.go("/")),
title=ft.Text("Quiclkli Merchant",size=16,color='white'), bgcolor='red'),
ft.Row(
[
ft.Container(content=ft.Row(
[
ft.Text("Dashboard",color='white',size=20),ft.IconButton(icon=ft.icons.MENU,icon_color='white'),
],alignment=ft.MainAxisAlignment.SPACE_BETWEEN
),
bgcolor='red',expand=True,padding=10
),
]
),
],
padding=0,horizontal_alignment='center',
scroll=True,
#bgcolor='white'
)
)
page.update()
return page.views