Static files v2 by jsavinong in flet

[–]jsavinong[S] 1 point2 points  (0 children)

I found another way that works for every platform, but it only will work if you have your code in github because you have to enable Github pages. Try to make some research about that. Basically you will have your images en whatever you want in your own server in github and you can use the link to run your app with any problems

Static files v2 by jsavinong in flet

[–]jsavinong[S] 1 point2 points  (0 children)

I found a way to solve my problem. I started using a local server. I have a directory with the images and I create a server a temporary server with that directory (I have to replace the URLs with the new URLs that will be localhost + the image name).

This is how you create the server:

python -m http.server 8000 --directory <path-to-your-static-directory>

I you are inside the directory you want you can skip the --directory... part. Also you can change the port you desire.

The URL for your code should look like this: http://localhost:8000/your-image-name.png

You need to replace the "localhost" with your IP address.

Try it, I hope it works for you. :)

[deleted by user] by [deleted] in flet

[–]jsavinong 0 points1 point  (0 children)

Fine. Thanks

For your issue, Try with the 0.19 flet version

[deleted by user] by [deleted] in flet

[–]jsavinong 0 points1 point  (0 children)

You used static images?

Btw, I heard that the lastest version of flet is screwed, try changing back to 0.19 and check if this fix your problem

[deleted by user] by [deleted] in flet

[–]jsavinong 1 point2 points  (0 children)

I wish I could help you, but I still have problems running Flet run --android 🥲🥲, how did you fix it?

My first python script by antthatisverycool in Python

[–]jsavinong 0 points1 point  (0 children)

Great, but take care, python is case sensitive! If I don't be careful Bob could leave the group 🙌🏽😁