Skip to content

Lottie animation is not displaying #5

@Muddassir-Farooq-official

Description

Duplicate Check

  • I have searched the opened issues and there are no duplicates

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

Muddassir-Farooq-official commented on Apr 27, 2025

@Muddassir-Farooq-official
Author

@InesaFitsner @FeodorFitsner kindly resolve this issue

SIRGPrice

SIRGPrice commented on May 26, 2025

@SIRGPrice

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
)

transferred this issue fromflet-dev/fleton Jun 2, 2025
ndonkoHenri

ndonkoHenri commented on Jun 2, 2025

@ndonkoHenri
Contributor

Closing as dup of #1.

Feel free to provide additional details in there.

locked as spam and limited conversation to collaborators on Jun 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ndonkoHenri@SIRGPrice@Muddassir-Farooq-official

        Issue actions

          Lottie animation is not displaying · Issue #5 · flet-dev/flet-lottie