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
Hi
is there a (possibly easy) way to call python functions from flutter and get the result back with flet?
for example
def my_function(a: int):
return a + 1
and somehow call the my_function from flutter and get the result
i've seen serious-python but i really want to avoid doing sockets etc
also i know i can just embed flet widgets in flutter app but it would be great if i could have all the ui in dart/flutter
(my target platform is android btw)
there is also this blog post but non of the mentioned classes and functions exist (@Flet.register_functionFlet.callPythonFunction) https://dev.to/ankushsinghgandhi/building-cross-platform-apps-with-flutter-and-python-a-short-guide-using-flet-epa
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.
-
Question
Hi
is there a (possibly easy) way to call python functions from flutter and get the result back with flet?
for example
and somehow call the
my_function
from flutter and get the resulti've seen serious-python but i really want to avoid doing sockets etc
also i know i can just embed flet widgets in flutter app but it would be great if i could have all the ui in dart/flutter
(my target platform is android btw)
there is also this blog post but non of the mentioned classes and functions exist (
@Flet.register_function
Flet.callPythonFunction
)https://dev.to/ankushsinghgandhi/building-cross-platform-apps-with-flutter-and-python-a-short-guide-using-flet-epa
Code sample
No response
Error message
No response
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions