Replies: 1 comment
-
I found my way around though it will be nice if you could set something up like the code above.. "fonts.py" import flet as ft def set_fonts(page): def main(page: ft.Page): def home(page: ft.Page): def apptheme(page: ft.Page): ft.app(target=main, assets_dir='assets') and then from my apptheme.py I imported my fonts.py and at the bottom added this: def main(page: ft.Page):
Initialize the Flet app with the assets directory specifiedft.app(target=main, assets_dir='assets') the app is working.. so I am not complaining :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am building an AppTheme for an application and it is telling me that module "flet" has not attribute 'theme.font_family'
I wounder what would be the right way to fix this.. thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions