Initialize a Flet application for King Messenger with a dark theme and an app bar.
This commit is contained in:
shohruhabdukarimov05-ctrl 2026-01-25 17:15:21 +05:00 committed by GitHub
parent fed5d5fabc
commit 8bd38aa781
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 27 additions and 0 deletions

27
Main.py Normal file
View File

@ -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)