Make Flutter-like apps with Python that can be run on Browser, Android, IOS, or Windows/macOS!!!
Cross platforms apps with Python
2 min read
Cross platform apps with python.
Flet is mainly a UI framework powered by flutter which can help you make cross platform GUI apps with python or any other language.
You can now make flutter apps with just python with the Flet Framework!! How cool is this! It's a new way to make flutter apps easily. You don't need to use dart language to make flutter apps anymore. You can write and make widgets with the python single file code!! Don't need to download flutter SDK, make an environment and huge file structure. You can now just install the python and flet packages on your machine and you're ready to go.
Flet UI is built with Flutter.
First, install flet with the command
pip install flet
A basic app structure to start a blank window. It is so easy to write code in Flet. A single-based file setup.
# app.py import flet from flet import Page def main(page: Page): # add/update controls on Page pass flet.app(target=main)
On the other hand, a basic flutter app structure is like this:
🖥Basic app with Flet
It is very simple to start with and make your cross-platform apps easily with python very quickly. Concepts are very similar to flutter. But you can write apps with widgets only using simple python code. Get started with Flet. Run your code on any platform.
Did you find this article valuable?
Support RF Coding Chronicles by becoming a sponsor. Any amount is appreciated!