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 set background image in Flet (Flutter) in Python

Can anyone help me in this problem? I want set the background image of a flet app (frameless) The results must look like this: Before Before After (Expectations) After I was in hurry so this is not properly edited. (I don't have much repuations in…
0
votes
1 answer

How do I have a tab with a column inside a page scroll in flet?

I got a problem with page.scroll that I don't know to fix. It used to work with flet 0.5 but it doesn't work with newer versions (right now I'm using 0.6.2). A minimal example is this: import flet as ft def main(page: ft.Page): # page.scroll =…
user936580
  • 1,223
  • 1
  • 12
  • 19
0
votes
0 answers

Why do my custom fonts reset and use the default font when I change my app theme to dark?

When im set my flet app to dark theme, my applied font change to default ? Im try to set font after change theme but its usefull, and im use page.update() after change font or theme.
Ahur4
  • 1
  • 1
0
votes
1 answer

Running Flet App is invoke the Thread Exception

I'm trying to run the start-up lines of code for Python Flet Library import flet as ft def main(page: ft.Page): pass ft.app(target=main) but during it's running this exception is occurred: Exception in thread Thread-1…
0
votes
0 answers

How to change the content in a dropdown button when not selected

My question is how do i change the content, value (call as you want) when the dropdown button is not selected or when i select another dropdown button. Example: I have two dropdown buttons, first one you can select the options: "register supplier"…
Paulo
  • 1
0
votes
0 answers

Are there any solutions to this problem in spotdl that is used in py file?

When i use spotdl in a py file for a simple flet application i get an error and i don't know why.I tried to use older versions of spotdl and it worked but i need the newest version of yt_dlp so that is why i can't use an older version of…
0
votes
0 answers

Issue when run flet script on debian 10 on Raspberry Pi 3B+

When I run code below: enter image description here Then I have error on terminal like below: enter image description here I want to run a application building with flet framwork on python
0
votes
0 answers

I'm struggling to understand how to use the Flet UI library together the python-osc

I understand how to use pythonosc to receive OSC messages and I was able to use the Flet library to mock up a UI. What I cannot figure out is how to update the UI when I receive a new OSC message. Here is my code. It correctly listens for incoming…
0
votes
0 answers

How can i establish the communication between classes in Flet (Flutter)?

Please can someone help here? The code should automatically transfer changes made in the UserID class (i.e. pressing the Delete button) to the RegisterUser class. So I can program there changes depending on the actions in the UserID class. All…
0
votes
1 answer

How can you specify tab order in python flet?

I have a working flet input page, but the tab order seems to have no logic to it. I would like to specify exactly what I want, but don't know how. Can anyone help?
Highland Mark
  • 1,002
  • 1
  • 7
  • 12
0
votes
4 answers

Python Flet cannot align text to center

Hello i am a beginner in Flet module my goal is center the text. According to documentation there is a text_align property in text widget. I tried to use it but not worked. My code: import flet as ft def main(page: ft.Page): page.title =…
Heisenberg
  • 11
  • 6
0
votes
1 answer

Python Flet AttributeError: module 'flet_core.page' has no attribute 'controls'

In summary, I am at the very beginning of the project. What I'm trying to do is use a custom 'navigation rail' for navigation between pages.Now there is a problem. When I use the custom navigation rail alone, the program works, but when I want to…
0
votes
0 answers

RuntimeWarning: Enable tracemalloc to get the object allocation traceback error using Flet

I'm trying to create a simple Async program using Flet but I keep getting this error: RuntimeWarning: Enable tracemalloc to get the object allocation traceback import asyncio import flet as ft async def main(page: ft.Page): async def…
0
votes
1 answer

Python Flet Current View/Page

I'm working on a Python Flet project and I'm looking for resources on developing a splash screen for my desktop application. I found some resources in the Flet documentation regarding page.splash, but my requirements are different. I was able to…
Jacob
  • 11
  • 3
0
votes
1 answer

How do I import Flet getting errors

I've been trying to install flet and use it for the past 2 hours and no matter what i try it keeps giving an error, even when I manually install each module "not found" it gives some attribution error from one of the flet files. I updated Python to…
Mitch
  • 1
  • 2