Updated for unifying

This commit is contained in:
2025-11-24 21:10:13 -05:00
parent fec8c05216
commit 61f1f6a711
2 changed files with 39 additions and 22 deletions

View File

@@ -1,4 +1,5 @@
from FileHandler import read_json, combine_ingredients, write_checklist
import flet as ft
selected_meals = {}
@@ -23,14 +24,20 @@ def selector(page: ft.Page):
submit_button = ft.ElevatedButton(text="Make Shopping List", on_click=update_meal_selection)
page.add(
ft.ListView(
controls=meal_list,
expand=True,
spacing=10,
padding=10,
),
submit_button,
)
page.controls[0].content = ft.Column(
controls = [
ft.ListView(
controls=meal_list,
expand=True,
spacing=10,
padding=10,
),
submit_button,
],
height = 500,
expand = False,
)
page.update()
ft.app(selector)
if __name__ == "__main__":
ft.app(selector)