You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defmain(page: Page):
"""Entry point of the app"""app=MyApp(page)
app.build()
if__name__=="__main__":
flet.app(
name="MyApp",
target=main,
assets_dir="assets",
)
How can I pass custom arguments to the app at startup? For example demo_mode: bool that gets passed to the constructor of MyApp
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How can I pass custom arguments to the app at startup? For example
demo_mode: bool
that gets passed to the constructor ofMyApp
Beta Was this translation helpful? Give feedback.
All reactions