lottie2flare

module
v0.0.0-...-097d1aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2019 License: Apache-2.0

README

Read/Write lottie and Flutter flare files in Go

This is an experimental library and tool used to convert lottie-web files to Flutter flare files.

It is currently a work-in-progress. Only an infinitesimal subset of simple animations are currently supported.

Note that there is a known issue in the flare_flutter plugin that causes it to crash when the JSON keys are in sorted order (which is the default for json.Marshal). I therefore wrote flare-bug-workaround as a temporary fix.

201-simple-loader

Examples

Please see the examples:

Documentation

GoDoc


Enjoy!


License

Copyright 2019 Glenn M. Lewis. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
cmd
dump-flare
dump-flare parses a flare JSON file and dumps it to a file.
dump-flare parses a flare JSON file and dumps it to a file.
dump-lottie
dump-lottie parses a lottie JSON file and dumps it to a file.
dump-lottie parses a lottie JSON file and dumps it to a file.
flare-bug-workaround
flare-bug-workaround reorders the JSON keys to work around the known bug in the flare JSON reader: https://github.com/2d-inc/Flare-Flutter/issues/90
flare-bug-workaround reorders the JSON keys to work around the known bug in the flare JSON reader: https://github.com/2d-inc/Flare-Flutter/issues/90
lottie2flare
lottie2flare parses a lottie JSON file, converts it to a flare animation and writes it to a .flr file.
lottie2flare parses a lottie JSON file, converts it to a flare animation and writes it to a .flr file.
Package convert converts lottie to flare animations.
Package convert converts lottie to flare animations.
Package flare provides read/write access to JSON flare files.
Package flare provides read/write access to JSON flare files.
Package lottie defines the JSON structure of a lottie file.
Package lottie defines the JSON structure of a lottie file.
helpers
Package helpers provides helper types for lottie files.
Package helpers provides helper types for lottie files.
layer
Package layer represents a lottie layer.
Package layer represents a lottie layer.
properties
Package properties represents properties in lottie files.
Package properties represents properties in lottie files.
shape
Package shape represents a lottie shape.
Package shape represents a lottie shape.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL