286 questions
0
votes
0
answers
45
views
libpyjini.so not found - White screen on smartphone
I'm trying to generate an APK build, and I'm getting the following error:
#Resumo do Erro:
nativeloader: Load libpyjni.so using class loader ns clns-4 (...) dlopen failed: library "libpyjni.so&...
-1
votes
1
answer
120
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 ...
1
vote
0
answers
111
views
The Android APK is not built from the Python Flet project
I wrote a simple app that retrieves, displays, and modifies data from a JSON file. The app uses BS4, requests, and Flet=0.29.3 (I'm not upgrading to a higher version, as this is the most optimal for ...
2
votes
0
answers
103
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
0
answers
56
views
How to update user status in MySQL after app purchase confirmation via Google Play?
I have an app built with Flet (Python) hosted on Railway alongside MySQL, and built with a Flutter webView for Google Play.
I want to update the "account_type" column in the MySQL database, ...
0
votes
1
answer
74
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
49
views
Flet python dialog close and Save is not working
im using flet to make a UI for an API app and i get a gray box when i try to click a button to open a pop up but when i close or save the pop up it dose not close but add a new pop up that can not go ...
1
vote
0
answers
97
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 ...
0
votes
0
answers
102
views
How can I fix this error in my python3/flet script?
I'm working on this Python3/flet0.28.3 project, on Macos M1:
main.py:
from flet import *
from flet_route import Routing,path
from pages.LOGIN import Login
from pages.HOME import Home
from pages.EDITOR ...
2
votes
1
answer
90
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
1
answer
63
views
on_login function not getting executed in flet auth
I am trying to create a login using discord oauth in flet.but the on_login function is not getting executed
my imports:
import os
import flet
from flet import ElevatedButton, Page
from flet.auth ...
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
1
answer
64
views
Python-Flet_Routing: pass variables between Views(pages)
I have a Python script, Flet multipages based using flet_routing module. I would like to know if is there a way, when changing page using 'page.go('/new_page'), to pass variables from first page to ...
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 ...
0
votes
0
answers
63
views
How can I autoscroll or go to the last position of a multiline TextField in Flet?
I'm trying to get a TextField in Flet to which text is added to update and display the last entry. So far, I've only managed to do this if I make the entry appear on the first line, but if I make it ...
1
vote
1
answer
94
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
0
answers
236
views
How to build a generic user control in Python Flet
I'm trying to develop a custom user control in Flet (version==0.28.2). The page contains a button_click event that implements the control:
def button_on_click(e):
page_content.controls=[...
0
votes
2
answers
138
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 - ...
0
votes
0
answers
60
views
ModuleNotFoundError: No module named 'storage' after building Flet app
I'm developing a CRUD app using Flet. I use the storage/data/ folder to store my database, config scripts, and connection logic.
Everything works fine during development. However, after I build the ...
1
vote
2
answers
344
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
1
answer
36
views
Why is container within intro_card variable not getting displayed
I am developing a flet app. I have a main container and sub container within intro_card variable
Why is container within intro_card variable not getting displayed?
from flet import *
def main (page: ...
0
votes
0
answers
193
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
65
views
Unexpected Data Type in Python Flet JSON Viewer and Editor
I'm building a Python program with Flet as the UI that takes in a JSON file and displayes the information in the Flet UI, but also allows you to edit the JSON file and save it. When I run the program, ...
0
votes
0
answers
162
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).
...
1
vote
0
answers
78
views
Error when trying to read file on android from flet app
Please help! I'm trying to read a .txt file that I pushed to the /sdcard directory on my Android device using adb push.
However, when I try to read the file from my app, I get a Permission Denied (...
0
votes
0
answers
61
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
0
answers
73
views
flet NavigationDrawer control does not close programmatically when opened with View()
Using flet library in python, I am trying to close a NavigationDrawer control programmatically using a button. The NavigationDrawer is added to the page using a View(), and I want to close the navbar ...
0
votes
3
answers
174
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 ...
0
votes
0
answers
70
views
How to align one control to the left, and center the rest in FLET?
Im trying to update our website, which was created in PYTHON, with FLET library. I want to position elements on my page. I want logo to be on the left, and form in the middle of the page, absolute-...
1
vote
1
answer
165
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
1
answer
50
views
How to alignment element of page.overlay[] list?
I have an flet.Container() object, that appending to page.overlay. Then I want to show it, by page.update(). But it align by default: start, start(top-left corner). It should align bottom-center as I ...
0
votes
0
answers
186
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
0
answers
42
views
Does Flet support Android target from WSL
Does Flet Support Android app development from WSL?
flet run main.py is working fine from WSL and I can see the app live from Windows (display forwarding).
flet run --web main.py also works fine ...
0
votes
1
answer
361
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 ...
0
votes
1
answer
85
views
How to stop updating a control during route change
I developed a simple app using Python Flet 0.21.2. The app consists into two main views: the 'Welcome' and the 'Login', each of them defined into separate classes. Routing occurs into the main() ...
-1
votes
3
answers
237
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 ...
1
vote
0
answers
81
views
Android scan folder for files
Given a folder path from a file picker, I would like to get all folders and files within this folder. I managed to do it on Windows, but not on Android (only folders are detected).
I tried os.scandir()...
0
votes
2
answers
287
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
0
answers
280
views
Building flet standalone application
I am on ubuntu 20.04 and I am trying to build a flet application with the command:
flet build linux
But it keeps displaying the error message below as shown below... Please who knows what the ...
0
votes
1
answer
264
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
0
answers
87
views
Why Does My Custom Control Start with a Deep Blue Color in My Flet App?
I am working on a Flet app and have built a custom control with some animations. The problem I am encountering is that when I first run the app, the control's color initially appears as a deep blue ...
0
votes
1
answer
86
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(&...
0
votes
1
answer
113
views
How to display two different views into main page
I developed a simple app with two different views, each one defined into two different classes. When I try to add the first one to the page, I get an error into the app window: "Unknown control ...
1
vote
1
answer
424
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 ...
0
votes
0
answers
53
views
How I can access to database sqlite on android 10 or higher?
I have an app that needs to access a sqlite database, in android versions 9 or lower it works correctly, but in android versions 10 or higher I can't access the database information. I understand that ...
1
vote
0
answers
292
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
1
answer
141
views
ModuleNotFoundError only when I run flet app from terminal
I'm working on a flet app and everything works fine when I run the app using PyCharm. The problem is that I want to try the hot reload provided by flet but when I run the app via the terminal I get a ...
0
votes
0
answers
120
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
86
views
How to write LOGs in an APP made in flet/python, which appear in the DDMS?
I created an application in flet/python and installed it on my cell phone.
I use the DDMS program (Dalvik Debug Monitor Server) to view application logs on the cell phone.
But I can't see logs from ...
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 ...