feat: add scrolling to main window

This commit is contained in:
Yandrik 2025-03-19 23:27:06 +01:00
parent 73ed02eac8
commit 7002b4437e

View File

@ -159,7 +159,9 @@ class FlashcardCreator:
# Create a scrollable column for the main content # Create a scrollable column for the main content
main_content = ft.Column( main_content = ft.Column(
[ [
ft.Row([self.source_dropdown, self.target_dropdown, self.settings_button]), ft.Row(
[self.source_dropdown, self.target_dropdown, self.settings_button]
),
ft.Divider(), ft.Divider(),
ft.Text("Input Text", size=16, weight=ft.FontWeight.BOLD), ft.Text("Input Text", size=16, weight=ft.FontWeight.BOLD),
self.input_text, self.input_text,
@ -219,7 +221,7 @@ class FlashcardCreator:
f, f,
) )
e.close(dialog) e.page.close(dialog)
e.page.update() e.page.update()
# Load settings if they exist # Load settings if they exist