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

Flet telethon login page is not working (async)

I am programming Telegram Login page with Flet Gui and Telethon module. The problem I am facing is the code is not sending verification code to entered phone number nor showing any error it just stops at await client.send_code_request(phone_number).…
0
votes
1 answer

Flet Python - How to move callbacks out of main

I'm looking to re-structure my flet app in a more OOP method as I increase the number of features. How can I move things like callbacks out of my main() function when I use them in flet.Checkbox I can't add arguments (like page=page) to the…
GooJ
  • 257
  • 3
  • 13
0
votes
2 answers

why is my self-hosting Flet web app stucking in 'please wait until the application is being started'?

my python code: import flet as ft import os # set Flet path to an empty string to serve at the root URL (e.g., https://lizards.ai/) # or a folder/path to serve beneath the root (e.g., https://lizards.ai/ui/path DEFAULT_FLET_PATH = 'http:/ip/' #…
0
votes
0 answers

Flet Colours Behave Differently In Bottom Navigation

I'm currently writing a small app using flet but I've run into a weird UI issue where I'm using the same colour in two different places and they are coming out looking different to one another. The code I'm running looks like this: import flet def…
Mitchell
  • 1
  • 1
0
votes
2 answers

NavigationRail not showing on new View

I am new to Flet, I was use to tkinter and creating new windows for each activity. Now on flet I am trying to re-make the same application in a modern way. The problem I have is when navigating screens (previously done with buttons on tkinter) I am…
0
votes
1 answer

How to make a custom favicon in Flet

I've been trying to get a favicon working in flet, but I just can't figure out how to do it. The documentation doesn't say anything about making custom favicons, so I just wanted to know if it was possible or not. I tried using the assets_dir…
0
votes
1 answer

How can I access the TextButton custom data property by clicking on the button in Python's Flet module?

I am using Flet module to create a simple GUI. I want to access the custom data on the button. However, using the clicked method, it seems that the event handler of the button using the data property of it, returns empty string. Therefore, the…
Javid
  • 21
  • 4
0
votes
0 answers

Install Flet on debian 10 fail

pip install flet on debian 10 works. But cannot run program after that.It fails with '`GLIBCXX_3.4.26' not found ' error. I debian 10 supported or is there a workaround?.
mikie
  • 95
  • 1
  • 1
  • 8
0
votes
0 answers

How to make a split window into 4 parts in flet?

I want to make split window into 4 parts in flet,similar to R GUI. Where Each part can run different codes altogether or showing graph etc. Below is reference: How do I make a split window? I want to do the same thing in flet. I have tried to…
user20955859
0
votes
0 answers

Flet loading icon not showing if port is specified

Follow-up question to: How to change the default loading icon in a Python flet app? Using the example app from the repo: https://github.com/flet-dev/examples/tree/main/python/apps/custom-loading-image For some reason it does not work when I add port…
0
votes
0 answers

How to automatically wrap texts when it reaches the edge of a container in Flet?

How to automatically wrap texts when it reaches the edge of a container in Flet? Now it just extends infinitely. If i use \n, it may not fit all windows sizes.
easonoob
  • 23
  • 5
0
votes
0 answers

How to move the switch tab buttons in the “tab bar” to the app bar in Flet?

How to move the switch tab buttons in the “tab bar” to the app bar in Flet? I have 3 tabs, but if I use tabs, there will be a "tab bar" under the app bar. But I don't want to demolish the app bar. Are there any ways to move the "tab bar" buttons to…
easonoob
  • 23
  • 5
0
votes
1 answer

How to set the width of controls in Flet once the page/window size is changed?

How to change the width of the controls in Flet once the page/window size is changed? E.g. I have a container that is the same width as the page now: container = ft.Container(content=ft.Text("this is a container"), width = page.width, height=…
easonoob
  • 23
  • 5
0
votes
0 answers

Set the location and visibility of a card in Flet

I am making a website in Flet. There is a button in the appbar: loginbutton = ft.TextButton(text = "Login", on_click=login, tooltip = "Login with your API key") and a card: card = ft.Card(content=ft.Text("This is a login card"), width = 400) And I…
easonoob
  • 23
  • 5
0
votes
1 answer

How do I edit a cell in flet's DataTable?

Flet's DataTable has a show_edit_icon property, but I don't know how do something when the icon is pressed. This is an example code: import flet as ft def main(page: ft.Page): page.add( ft.DataTable( columns=[ …
user936580
  • 1,223
  • 1
  • 12
  • 19