Questions tagged [flet]

Flet is a framework that enables you to easily build realtime web, mobile and desktop apps in your favorite language and securely share them with your team.

Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.

From idea to app in minutes
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 a great-looking interactive apps to serve a group of users.

Simple architecture
No more complex architecture with JavaScript frontend, REST API backend, database, cache, etc. With Flet you just write a monolith stateful app in Python only and get multi-user, realtime Single-Page Application (SPA).

Batteries included
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 built-in web server with assets hosting and desktop clients.

Powered by Flutter
Flet UI is built with Flutter, so your app looks professional and could be delivered to any platform. Flet simplifies Flutter model by combining smaller "widgets" to ready-to-use "controls" with imperative programming model.

Speaks your language
Flet is language-agnostic, so anyone on your team could develop Flet apps in their favorite language. Python is already supported, Go, C# and others are coming next.

Deliver to any device
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.

94 questions
3
votes
2 answers

how to build APK files for applications developed using Flet (python)

in flutter i can build APK files for Android applications using flutter build apk how to build APK files for applications developed using Flet (python)?
Alvah_Franey
  • 121
  • 2
  • 6
2
votes
1 answer

How to create a TreeView layout in Flet?

As per the Flet Layout docs, Flet does not seem to support TreeView layout. However, there is a similar widget available in Flutter flutter_treeview Sample treeview: How to create a similar treeview using Flet?
TheCodeCache
  • 820
  • 1
  • 7
  • 27
2
votes
0 answers

Argument of type "str | None" cannot be assigned to parameter "__x" of type "ReadableBuffer | str"

I am getting an error when I access the value of a TextField to perform a sum operation with that number. My code is as follows: txt_number = ft.TextField(value="1", text_align=ft.TextAlign(value="center"), width=100) def minus_click(e): …
cabh_000
  • 21
  • 1
2
votes
2 answers

populate flet datatable with pandas dataframe

how can I disable pandas dataframe in flet datatable and be able to edit and delete each row. Column A Column B Cell 1 Cell 2 Cell 3 Cell 4 I tried setting the column headers by calling df.column but I don't know how to go about…
Oxtux
  • 23
  • 3
2
votes
1 answer

Vertical scrollbar in FLET app, does not appear

I am building a FLET app, but sometimes I have a datatable which is too large for the frame it is in. For the row I have a scrollbar appearing, but for the column I just don't seem to get it working. In this code a scrollbar simply does not…
mtjiran
  • 292
  • 1
  • 2
  • 12
1
vote
1 answer

How to restart a Python script in itself

I'm writing a script using Flet and I need to write a script to restart the app, but I don't know how to implement it. Here's the code: def theme_changed(e): print(data["theme"]) data["theme"] = str(theme_dd.value) …
KirilAf
  • 11
  • 1
1
vote
0 answers

How to save a JSON file using flet in Python

I have a script which creates JSON and save it in the current directory where the python script is lying. I want a GUI interface where I can save that output JSON in a particular folder selected form the Flet interface. import flet from flet import…
1
vote
2 answers

Image disappear when I pick a file with Flet Python

I'm trying to make a GUI with flet, i am displaying an image, a button and a text field in the interface, but when i pick a file with FilePickerResultEvent, my image disappear. I follow the example of FilePicker of flet. It happens if i select any…
jariasca
  • 33
  • 4
1
vote
1 answer

How to run python flet scripts on repl.it

I'm trying to run a python flet script on repl.it. Here's what I did: created a new repl, for a python script; repl.it creates a main.py file from the Packages tool I imported flet I wrote this code into main.py: import flet as ft def…
Al C
  • 5,175
  • 6
  • 44
  • 74
1
vote
1 answer

Python Flet Async

I'm trying to use Flet libray with an async function to login into telegram. The functionality at the moment are really basic, it just detects if the user is already logged in or not, and if not opens a login page, with a phone number field and a…
Val
  • 280
  • 3
  • 13
1
vote
0 answers

Docker Python App with Flet: Stuck on "Reconnecting"

I'm trying to deploy a flet app in a docker container. The problem is, on my windows machine the docker container works fine and the app runs perfectly. But on the docker container on my Synology NAS, when I try to run the app, it gets stuck on…
1
vote
0 answers

Flet integration (modularization) with other Flutter/Dart code

I love the idea of combining the power (and existing libraries) of python with the rich user interfaces of Flutter, however I wonder about how Flet can interact with existing Flutter code-bases. Specifically, is it possible to incorporate Flet into…
LZM
  • 169
  • 1
  • 8
1
vote
1 answer

Flet page.update() does not update my table

In my code I am trying to update a table which is called bag_table (in the row of the container of the right column). And when running my code it does show the table initially, but when I hit the submit button the backed is working. It is actually…
mtjiran
  • 292
  • 1
  • 2
  • 12
1
vote
2 answers

Python Flet scroll mode for Datatable

I am working on a project using flet Datatable that aims to display the pandas table which has almost N number of columns. I tried using data columns and rows to display. And able to show the table. But since the table has many columns, I can see…
Uday
  • 13
  • 5
1
vote
1 answer

Flet Background image

Is there any method in adding a background image to the page in Flet python. I can find only .append .add in the docs is it .overlay for that. Thanks in advance. I tried with using .overlay but nothing happened.
Jacob
  • 11
  • 3
1
2 3 4 5 6 7