Using Flet in Pythonista on iOS

326 Views Asked by At

I'm playing around with Flet on macOS. It's pretty cool when you want to develop a UI in Python -- on macOS.

Is there a way to use Flet code in Pythonista on iOS?

1

There are 1 best solutions below

1
Vivekananda Mullangi On BEST ANSWER

there is no official way to run flet source code on ios.

flet, for now, only has the ability to be run on computers(i.e., windows, linux, mac). the only way to view the app in ios is to download the flet app which was release 3 months ago and use the computer to run the code.

the way to do so, is to run the flet app in the computer with the command:

flet run --ios

which will give u a QR code to scan. when u scan it and open the link in flet app, u can view the app in ios.

Note:

when i said that flet can only run on computers, i mean when not compiled to run on android and ios, support for which was release few months back.

links:

https://flet.dev/docs/guides/python/testing-on-ios/

https://flet.dev/blog/flet-for-ios