forked from Daxexs/flet-easy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathview_404.py
43 lines (40 loc) · 1.16 KB
/
view_404.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
from flet import (
ButtonStyle,
Column,
Container,
FilledButton,
Text,
View,
colors,
)
from flet_easy.datasy import Datasy
def page_404_fs(data: Datasy) -> View:
return View(
controls=[
Container(
content=Column(
controls=[
Text("404", size=90),
Text("url not found!"),
FilledButton(
"go to Home",
width=200,
height=40,
on_click=data.go(data.route_init),
style=ButtonStyle(
bgcolor=colors.RED_900,
color=colors.WHITE,
),
),
],
alignment="center",
horizontal_alignment="center",
),
bgcolor=colors.BLACK12,
padding=20,
border_radius=10,
)
],
vertical_alignment="center",
horizontal_alignment="center",
)