Skip to content

obitodarky/Flare-Animations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Flare-Animations

Common animations in Flare that can be used in Flutter Apps.

How to use Animations in Flutter.

  • Download your chosen animation. Animations can be found in the folders. Each animation has a different folder. Feel free to check them out.

  • Make Sure to add Flare package in your pubspec.yaml file.

dependencies:
  flutter:
    sdk: flutter
  
  flare_flutter: any

See the Flare package for Flutter here

  • Add your animation in assets in pubspec.yaml file. Animations will have a .flr extension
assets:
  - animation.flr
  • Import packages from Flare
import 'package:flare_flutter/flare_actor.dart';
  • Using the FlareActor Widget, add the path to your animation and the name of Animation.
FlareActor("assets/animation.flr",
        animation: "Animation Name",
        fit: BoxFit.contain,
        )
``

Releases

No releases published

Packages

No packages published