DEV Community

Cover image for Flutter-like cross-platfrom apps using Python😲!!
RF Fahad Islam
RF Fahad Islam

Posted on

Flutter-like cross-platfrom apps using Python😲!!

✨Introduction

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.

The app can be run on Browser, Android/IOS, Windows/macOS/Linux

🌟Features

Flet UI is built with Flutter.
Screenshot 2022-11-08 205211.jpg

📂Basic Structure

First, install flet with the command

pip install flet
Enter fullscreen mode Exit fullscreen mode

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)
Enter fullscreen mode Exit fullscreen mode

On the other hand, a basic flutter app structure is like this:

WhatsApp Image 2022-10-15 at 10.05.11.jpg

🖥Basic app with Flet

image.png

Conclusion

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.

Top comments (7)

Collapse
 
fahad_islam profile image
RF Fahad Islam

dddddddddddddddddddddddddddddd

Collapse
 
fahad_islam profile image
RF Fahad Islam

dddddddddddddddddddd

Collapse
 
fahad_islam profile image
RF Fahad Islam

ddddddddddddddddddd

Collapse
 
fahad_islam profile image
RF Fahad Islam

ddddddddd

Collapse
 
fahad_islam profile image
RF Fahad Islam

ddddddddd

Collapse
 
fahad_islam profile image
RF Fahad Islam

ddd

Collapse
 
fahad_islam profile image
RF Fahad Islam

d