-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
Duplicate Check
- I have searched the opened issues and there are no duplicatesTo pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
Describe the bug
Lottie animation is not displaying when place json file inside assets folder locaaly not working
Code sample
Code
[Paste your code here]
To reproduce
try placing json file in assets folder then run lottie code
Expected behavior
No response
Screenshots / Videos
Captures
[Upload media here]
Operating System
macOS
Operating system details
windows
Flet version
0.27.6
Regression
No, it isn't
Suggestions
No response
Logs
Logs
[Paste your logs here]
Additional details
No response
Activity
Muddassir-Farooq-official commentedon Apr 27, 2025
@InesaFitsner @FeodorFitsner kindly resolve this issue
SIRGPrice commentedon May 26, 2025
PATH = "assets/LottieAnimation.json"
with open(PATH, "r", encoding="utf-8") as json_file:
json_data = json_file.read()
json_base64 = base64.b64encode(json_data.encode('utf-8')).decode('utf-8')
animacion = flet_lottie.Lottie(
src_base64=json_base64,
reverse=True,
repeat=True,
width=100,
height=100
)
ndonkoHenri commentedon Jun 2, 2025
Closing as dup of #1.
Feel free to provide additional details in there.