-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
34 lines (23 loc) · 809 Bytes
/
main.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
import flet as ft
def main(page: ft.Page):
appbar = ft.AppBar(
title = ft.Text("Flet web app", size=45, color="white"),
bgcolor = "blue"
)
page.vertical_alignment = ft.MainAxisAlignment.CENTER
page.horizontal_alignment = ft.CrossAxisAlignment.CENTER
content_1 = ft.Container(
content = ft.Column([
ft.Text("Hello From Flet", size=40)
])
)
content_2 = ft.Container(
content = ft.Column([
ft.Text("by Dhony Abu Muhammad", size=20)
])
)
page.add(appbar, content_1, content_2)
ft.app(target=main, port=8080, view=None)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Berhasil
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -