Skip to content

Commit

Permalink
Create Wedeliverformat.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Rogendo authored Sep 2, 2023
1 parent 5dafe18 commit cfd93a0
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions Wedeliverformat.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import flet as ft

def main(page: ft.Page):
page.title = "We Deliver"
def check_item_clicked(e):
e.control.checked = not e.control.checked
page.update()



page.appbar = ft.AppBar(
leading=ft.Icon(ft.icons.PALETTE),
leading_width=40,
title=ft.Text("We Deliver"),
center_title=False,
bgcolor=ft.colors.SURFACE_VARIANT,
actions=[
ft.IconButton(ft.icons.WB_SUNNY_OUTLINED),
ft.IconButton(ft.icons.FILTER_3),
ft.PopupMenuButton(
items=[
ft.PopupMenuItem(text="Item 1"),
ft.PopupMenuItem(), # divider
ft.PopupMenuItem(
text="Checked item", checked=False, on_click=check_item_clicked
),
]
),
],
)

page.navigation_bar = ft.NavigationBar(
destinations=[
ft.NavigationDestination(icon=ft.icons.HOME, label="Home"),
ft.NavigationDestination(icon=ft.icons.CHAT, label="Inbox"),
ft.NavigationDestination(
icon=ft.icons.PROFILE_BORDER,
selected_icon=ft.icons.PROFILE,
label="Account",
),
]
)
page.add(ft.Text("Body!"))


ft.app(target=main)

0 comments on commit cfd93a0

Please sign in to comment.