From 8bd38aa7815a50f6c1493a776f198a0b8b0cdfbb Mon Sep 17 00:00:00 2001 From: shohruhabdukarimov05-ctrl Date: Sun, 25 Jan 2026 17:15:21 +0500 Subject: [PATCH] Main.py Initialize a Flet application for King Messenger with a dark theme and an app bar. --- Main.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Main.py diff --git a/Main.py b/Main.py new file mode 100644 index 0000000..9f804af --- /dev/null +++ b/Main.py @@ -0,0 +1,27 @@ +import flet as ft + +def main(page: ft.Page): + page.title = "King Messenger" + page.theme_mode = ft.ThemeMode.DARK + page.bgcolor = "#0e1621" + + page.appbar = ft.AppBar( + title=ft.Text("King Messenger", weight="bold"), + bgcolor="#242f3d", + center_title=True + ) + + page.add( + ft.Column([ + ft.Container(height=20), + ft.Row([ft.CircleAvatar(content=ft.Text("K"), radius=40)], alignment="center"), + ft.Row([ft.Text("King Messengerga xush kelibsiz!", size=20, weight="bold")], alignment="center"), + ft.ListView(expand=True, spacing=10, controls=[ + ft.ListTile(leading=ft.Icon(ft.icons.CHAT), title=ft.Text("Chatlar")), + ft.ListTile(leading=ft.Icon(ft.icons.HISTORY), title=ft.Text("Stories")), + ]) + ], expand=True) + ) + +ft.app(target=main) +