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
0
votes
0 answers

how to dynamically add rows in flet python datatable?

I found a piece of code on the internet for kivymd, where I can add or remove text field values to the data table by pressing the Add button (as shown below). But is this possible for Flet Python? How? Even I have appended all the rows of the data…
0
votes
0 answers

Dropdown bgcolor don't work during displaying the options?

import flet as ft async def main(page: ft.Page): page.bgcolor = '#024135' dd = ft.Dropdown( width=100, bgcolor='#024135', color='white', options=[ ft.dropdown.Option(text='Option 1'), …
0
votes
1 answer

Determine whether Flet checkboxes are checked or not

I have the following code that creates 4 rows of 7 checkboxes using Flet: import flet as ft def main(page): DaysOfWeek = ["Mon","Tue","Wed","Thu","Fri","Sat","Sun"] checkboxes=[] for j in range(0,4): def boxes(count): …
dwburger
  • 51
  • 1
  • 6
0
votes
0 answers

flet python lambda function parameter is only the last entry from loop

def view(self,page,params): db = Database.ConnecttoDatabase() main_colum = ft.Column() for konto in Database.readKonto(db): para = konto[0] main_colum.controls.append( ft.Card( …
l0tek
  • 1
0
votes
1 answer

4x7 grid of checkboxes using Flet

How do you make a 4 (rows) by 7 (columns) of checkboxes using Flet? I can get all 28 checkboxes to be displayed, but can't get them into 4 rows of 7. Thanks!
dwburger
  • 51
  • 1
  • 6
0
votes
1 answer

How to add record in datatable flet python?

I want the user to enter the values and press the plus button to display all the values in the TextField in the data table and in my code to access these records through a list. In the picture below, the data table is created again from the…
Navrang
  • 41
  • 4
0
votes
1 answer

How to delete the values of flet python text fields after clicking the button?

I use Flet Python framework And I want to delete its values after clicking on the button and store them in the data table def main(page: ft.Page): def btn_click(e): if not sstid.value: sstid.error_text = "err" …
Navrang
  • 41
  • 4
0
votes
2 answers

How to change loading logo in Flet?

I am new to the Flet framework. I have noticed that while running some small apps, I see the Flet logo in the middle of the screen being animated while stuff is being loaded in the background. I want to know whether the logo can be changed and…
Pranav Krishna S
  • 324
  • 2
  • 13
0
votes
1 answer

Flet paking into macos application

I'm trying to convert a python flet application into a macos application. I'm using the flet cli with the command flet pack. The project files tree is: PyFlutter |_ assets | |_ fonts | | |_font | |_ image.png |_ backend.py |_ credentials.log |_…
Edoardo Balducci
  • 332
  • 1
  • 10
0
votes
1 answer

Change color of AlertDialog in flet

When I use the following code of the flet docu my AlertDialog has a different, light blue color. How can I change the color of the dialog box? import flet as ft def main(page: ft.Page): page.title = "AlertDialog examples" dlg = ft.AlertDialog( …
Hans Geber
  • 111
  • 8
0
votes
1 answer

Static Website Flet deployment - No module error

I can run my Flet application in the IDE and it renders in a browser, everything works. However, once built as a static website it produces the /dist folder as expected. I have created a local website in IIS (on the same machine) and pointed at this…
0
votes
1 answer

Python with flet, how can i put Google ads

I am creating an app in python with flet, and I wanted to ask if there is a way to insert in the latter the Google ads or another type of advertising I’ve already read something online but I haven’t found anything useful
Davide
  • 1
  • 2
0
votes
0 answers

Create Custom ImageLoader Control Class in flet framework

I want to Create Class called ImageLoader to Shwoing ProgressRing While Image Loading with Image Class I can Display Image From url By: image_url = 'https://te.legra.ph/file/6b4e9d80daacb52b71a14.jpg' image_control = Image(src = image_url) then I…
Kakarotto
  • 13
  • 3
0
votes
0 answers

How does Flet make the Datatable always at the top?

I'm trying to implement a desktop application. However, I'm encountering some issues. When I try to insert my data using the DataTable implementation, the layout of my data table may not appear at the top or the layout and length of the data table…
0
votes
0 answers

Accessing NFC via Flet app (progressive web app)

I am new to the app development in flutter, but really like python. Therefore I would really like to implement my app with flet. My question is, do you know if with integrating other python libraries I could access the NFC capabilities of the phone…
ili
  • 1