|Feodor Fitsner 5d21f8857a Bump Flutter deps for Flet 0.14.0 (#2153)||2 days ago|
|.github||9 months ago|
|ci||1 year ago|
|client||2 days ago|
|docs||6 months ago|
|media||2 months ago|
|package||2 days ago|
|sdk||2 days ago|
|server||4 months ago|
|.appveyor.yml||2 weeks ago|
|.gitattributes||1 year ago|
|.gitignore||1 year ago|
|CHANGELOG.md||2 days ago|
|CONTRIBUTING.md||1 week ago|
|LICENSE||1 year ago|
|README.md||6 months ago|
Flet is a framework that enables you to easily build real-time web, mobile, and desktop apps in your favorite language and securely share them with your team. No frontend experience is required.
An internal tool or a dashboard for your team, weekend project, data entry form, kiosk app, or high-fidelity prototype - Flet is an ideal framework to quickly hack great-looking interactive apps to serve a group of users.
To start developing with Flet, you just need your favorite IDE or text editor. No SDKs, no thousands of dependencies, no complex tooling - Flet has a built-in web server with assets hosting and desktop clients.
Flet UI is built with Flutter, so your app looks professional and could be delivered to any platform. Flet simplifies the Flutter model by combining smaller "widgets" to ready-to-use "controls" with an imperative programming model.
Deploy Flet app as a web app and view it in a browser. Package it as a standalone desktop app for Windows, macOS, and Linux. Install it on mobile as PWA or view via Flet app for iOS and Android.
At the moment you can write Flet apps in Python and other languages will be added soon.
Here is a sample "Counter" app:
import flet from flet import IconButton, Page, Row, TextField, icons def main(page: Page): page.title = "Flet counter example" page.vertical_alignment = "center" txt_number = TextField(value="0", text_align="right", width=100) def minus_click(e): txt_number.value = int(txt_number.value) - 1 page.update() def plus_click(e): txt_number.value = int(txt_number.value) + 1 page.update() page.add( Row( [ IconButton(icons.REMOVE, on_click=minus_click), txt_number, IconButton(icons.ADD, on_click=plus_click), ], alignment="center", ) ) flet.app(target=main)
To run the app install
pip install flet
and run the program:
The app will be started in a native OS window - what a nice alternative to Electron!
Now, if you want to run the app as a web app, just replace the last line with:
run again and now you instantly get a web app:
More demo applications can be found in the gallery.