Updated for unifying
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user