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, after publishing a static website apps is not works

I created GUI for my python scripts. I used flet. In the app all work. But when I published app for a static website. In the app all work. But when I published app for a static website. I used modules import telnetlib import time import flet as…
pda101
  • 1
0
votes
1 answer

The color of the window title does not change with the flet python theme

I would like to change the window title, how can I do this? Image import flet as ft def main(page: ft.Page): page.theme_mode = ft.ThemeMode.DARK page.window_height, page.window_width = 300, 300 page.title = 'app' …
N1C1
  • 3
  • 2
0
votes
1 answer

how to see result directly after change some property without re-run the code Flet-Pycharm

I'm try to make simple app with Flet in PyCharm, My problem is when I change simple properties ( Code ) for example change bgcolor I have to re-run code to se result, there is Any way to see result directly ( live update ) without re-run code in…
0
votes
0 answers

vertical_alignment in different parts of the page flet python

I am trying to place containers in different parts of the page. However, the documentation does not provide an example of how to do this. I want to place some of the containers in the middle, and some from the bottom of page. How to do it? import…
0
votes
1 answer

DataTable scrolling inside ListView in FLET

I'm currently facing an issue with the DataTable control within a ListView. The problem is that the scrollbar is not appearing when the data exceeds the window size, causing the content to be cut off. Here is a simplified version of my code: import…
0
votes
0 answers

Use python flet with flask

I made a pwa which I now want to publish to my website which uses flet. The problem is that I have no idea how to combine flet with with flask. I imagine the code would look something like this: @app.route('/flashcards') def flashcards(): def…
0
votes
0 answers

Why is expand not working as expected in python flet

I wrote a samll piece of code for my todo app ui... but whenever I use expand=True for ft.Text or ft.Tabs, It ends up stacking all views in top-left corner... I could not find a solution to my problem in the docs. Here is my code: import flet as…
0
votes
1 answer

Python Flet Framework py to exe Error (pyinstaller)

I encountered an error to convert counter app written with python flet framework to exe using with auto-py-to-exe. Here is my code; import sys sys.setrecursionlimit(sys.getrecursionlimit() * 5) import flet as ft def main(page: ft.Page): …
emrec
  • 1
  • 2
0
votes
0 answers

Dynamic routing in flet python

I want to build a chat app with flet in python. For routing I defined a Router class which handles all the routing. But I am not able to figure a way out for implementing dynamic routes such as "/:username". How can I acheive dynamic routing in…
0
votes
0 answers

How can I fix GoogleOAuthProvider authentication when using flet run file.py?

My code: import os import flet as ft from flet.auth.providers.google_oauth_provider import GoogleOAuthProvider def main(page: ft.Page): provider = GoogleOAuthProvider( client_id=**CLIENT_ID**, client_secret=**CLIENT_SECRET**, …
0
votes
0 answers

Efficient DataTable in python flet

I am developing a library management system in python with the help of sqlite3 and flet modules. I have used the DataTable controls as follows: class BooksStatusControl(ft.UserControl): def __init__(self, page): super().__init__() …
0
votes
0 answers

I want to put a data table in a tab, but I get an error when I run it

The error message is 'There was an error while processing your request: 'tuple' object has no attribute '_set_attr_internal'. Here is the code. How can I put a data table in a tab? table = ft.DataTable( width=700, bgcolor="yellow", …
0
votes
1 answer

How to disable the function of using arrow key to switch focus of controls when developing a Flet app?

I noticed that when I was using arrow keys in an sample app, the focus (sort of) of control will be changed depending on the direction of arrow key I have pressed. So how can I disable this behaviour? I looked all information related to keyboard in…
sty2004
  • 1
  • 2
0
votes
0 answers

How to use Docker with the difficult structured Flet project?

My project has this structure: -main_flet_app.py -app1_folder: flet_app.py -app2_folder: flet_app.py From main_flet_app.py I run other apps using module subprocess, this is necessary in order to open every app in new browser tab. But I have…
0
votes
0 answers

How to use FletApp widget in Flutter

Can anybody tell me how to use the FletApp widget in Flutter? I am using this package from pub dev. I followed everything they are saying by which I can use the flet app in flutter but it gives me an error saying open libmigui.so failed! dlopen -…