Added Settings options

This commit is contained in:
2025-12-17 23:16:54 -05:00
parent 28fd5cba5e
commit 249723a2e0
2 changed files with 71 additions and 3 deletions

View File

@@ -1,6 +1,9 @@
import flet as ft
from MealBuilder import builder
from MealSelector import selector
from Settings import settings
def create_menubar(page: ft.Page, selector, builder):
def create_menubar(page: ft.Page):
menu = ft.AppBar(
title=ft.Text("NoteNook"),
bgcolor='#CC8B65',
@@ -8,8 +11,9 @@ def create_menubar(page: ft.Page, selector, builder):
actions=[
ft.PopupMenuButton(
items=[
ft.PopupMenuItem(text="Meal Selector", on_click=lambda e: selector(page)),
ft.PopupMenuItem(text="Meal Builder", on_click=lambda e: builder(page)),
ft.PopupMenuItem(content=ft.Text("Meal Selector"), on_click=lambda e: selector(page)),
ft.PopupMenuItem(content=ft.Text("Meal Builder"), on_click=lambda e: builder(page)),
ft.PopupMenuItem(content=ft.Text("Settings"), on_click=lambda e: settings(page)),
],
icon = ft.Icons.FASTFOOD_OUTLINED,
icon_color = '#E3DCD2'