285 questions
-1
votes
1
answer
111
views
Flet error while building Windows application [closed]
Every time I try to use the command "flet build windows" in the same folder where my main.py source code is, I get the error shown in the screenshot.
I've already downloaded Visual Studio ...
2
votes
0
answers
85
views
Built Flet android app is blank inside, but in testing it works fine
I am making my first app with Flet in python. The problem that I get, is when I build the app as an apk, it is just blank inside. No error, no crash. The weirdest thing is, that the app works ...
0
votes
1
answer
64
views
How to center the content in a Flet page
I'm trying to create an Android app with a navigation bar. When I navigate I clear the content's page and add a new content. The default content occupies all the size, but when I navigate to another ...
0
votes
0
answers
81
views
flet_ads only displaying: Unknown control: banner_ad
I'm new to flet. I couldn't make ads work in a project. All attempts so far show up like the screen shot attached.
I followed this tutorial (https://youtu.be/CgScZlh_xRs?si=icHZf_k0o_JMMqlq), and when ...
2
votes
1
answer
83
views
Flet app for Supabase account management: unable to reset password for already registered email
I developed a simple authentication UI (login, registration, and password reset) for a Flet app using Supabase as the backend for user management. The app entry point is the main function which sets ...
0
votes
0
answers
21
views
AuthorizationService error for basic login in flet
Using the new Flet 0.7a version.
Using the default auth example from their docs
def main(page: ft.Page):
provider = GoogleOAuthProvider(
client_id=GOOGLE_CLIENT_ID,
client_secret=...
0
votes
0
answers
29
views
Is there a way to cancel/abort Flet.FilePicker.update() when use it with Minio/s3 presigned url for web app?
i'm a newbie to Flet and i can't solve this problem. After the command:
file_picker.upload([FilePickerUploadFile(name=filename,upload_url=presigned_url)])
Object from userside' files start to be ...
1
vote
1
answer
88
views
Dynamically created buttons and on_click event flet
What is the problem with this code? The last button that is created is always the one that is clicked!
import flet as ft
def main(page: ft.Page):
def click(e, button: ft. Button):
button....
0
votes
2
answers
131
views
How do I 'reset' an ft.Dropdown to its startup state after an option has been chosen?
I develop a Python/Flet program where I need to 'reset' the GUI in some situations to it's initial state. Clearing a ft.TextField is no problem by just setting it's value to an empty string. However - ...
1
vote
2
answers
320
views
ModuleNotFoundError: No module named 'google' when importing google gemini ai - flet
I was trying to build an app on flet with gemini [from google import genai]. When I build an apk and run it on android. I got the ModuleNotFoundError: no module named google error.
error:
Traceback (...
0
votes
0
answers
187
views
How to create Flet foreground service
I need help creating a foreground service in python-flet. Can anyone help me with advice or provide a procedure on how to create a foreground service using flet, python, pyjnius... and pyproject.toml ...
0
votes
0
answers
155
views
Python 3.11, Flet 0.27 — how to reduce Dropdown size?
I'm building a small app and added a Dropdown widget, but it appears disproportionately large compared to the rest of the UI — even though the font size inside is small (screenshot and code attached).
...
0
votes
0
answers
59
views
How to make a vertical divider span the full height of the window?
Problem description:
I'm building a user interface using the Flet library and trying to place a vertical divider between two containers. However, the divider doesn't extend to the full height of the ...
0
votes
3
answers
169
views
Why is the width and height being ignored at runtime?
I have installed flet on my windows PC and I'm using Pycharm as my editor. When I run the python script in both the editor or using CMD, the width and height defined in the code below won't work. I ...
1
vote
1
answer
145
views
Python Flet DropDown: selected option is not visible
I developed a simple app with a button using Python Flet (ver 0.21.2). Once the button is clicked, it adds to the page a row with a textfield and a dropdown control. Here is the full code:
import flet ...
0
votes
0
answers
182
views
Encountering Flet Build APK Issue on Windows Machine
I am trying to build the android apk of a simple python flet application on my Windows 10 machine. However, despite the fact that I have installed Android Studio, flutter, Java SDK, gradle, accepted ...
0
votes
1
answer
354
views
How to show horizontal scroll bar into a python flet datatable
I developed a simple code in Python Flet that consists of a DataTable added to a Row, inserted into a Column. These nested controls are added into a container with dimensions that don't allow to ...
-1
votes
3
answers
225
views
Python self.page.snack_bar doesn't work in Flet
I'm a beginner student and trying to validate my login code showing a snackbar mensage. There are no erros to run, but snackbar doesn't appear.
At first a tried if a firebase authentication, and i ...
0
votes
2
answers
279
views
Flet Build APK fails when using --include-package
When building a flet apk through
flet build apk --include-package requests,
the flutter compiler fails with the following error.
Because flet 0.25.2 depends on http ^1.2.2 and requests >=4.1.0 ...
0
votes
1
answer
258
views
How to change theme mode of a container and its children in Python Flet
I'm trying to develop an app with multiple views. Each view should have a proper theme and theme mode. To solve this problem, I decided to deal with an easier one. I would like to set a page theme and ...
0
votes
1
answer
82
views
How to delete margins or spaces or padding between text vertically in flets
I have 2 Text() inside page.control, then I run it but I found margin/distance between Text(), I want to remove it
code
from flet import *
def main(page: Page):
page.controls = [
Text(&...
1
vote
1
answer
407
views
Is there a way for a Flet or flutter app to have 2 open windows at the same time?
I have been using flet to create a desktop app, previously I was using PyQt6, which had a neat feature that more than one window or widget could be open at the same time.
Is there a way for a flet ...
1
vote
0
answers
276
views
How to access the phone's camera and interact with other system components using the Flet library?
I am working on developing an app using the Flet library in Python, and I need help with interacting with system components on an Android phone, such as the camera and other necessary permissions.
...
0
votes
0
answers
115
views
sort DataTable in Flet
I am trying to make a sorted DataTable in Flet but it doesn't seem to work and I don't know why.
My code is the following but it doesn't sort the table and it doesn't display the sort indicator either....
0
votes
0
answers
49
views
How to Specify minSdkVersion and targetSdkVersion for a Flet App While Building an APK?
I'm building an APK for my Flet app using the flet build apk command. However, I'm encountering issues that might be related to the SDK versions. I suspect the problem is due to incorrect ...