flare_flutter 3.0.2 flare_flutter: ^3.0.2 copied to clipboard
Vector design and runtime animation for Flutter.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flare_flutter
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
flare_flutter: ^3.0.2
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flare_flutter/asset_provider.dart';
import 'package:flare_flutter/base/actor.dart';
import 'package:flare_flutter/base/actor_artboard.dart';
import 'package:flare_flutter/base/actor_axis_constraint.dart';
import 'package:flare_flutter/base/actor_blur.dart';
import 'package:flare_flutter/base/actor_bone.dart';
import 'package:flare_flutter/base/actor_bone_base.dart';
import 'package:flare_flutter/base/actor_color.dart';
import 'package:flare_flutter/base/actor_component.dart';
import 'package:flare_flutter/base/actor_constraint.dart';
import 'package:flare_flutter/base/actor_distance_constraint.dart';
import 'package:flare_flutter/base/actor_drawable.dart';
import 'package:flare_flutter/base/actor_drop_shadow.dart';
import 'package:flare_flutter/base/actor_ellipse.dart';
import 'package:flare_flutter/base/actor_event.dart';
import 'package:flare_flutter/base/actor_flags.dart';
import 'package:flare_flutter/base/actor_ik_constraint.dart';
import 'package:flare_flutter/base/actor_image.dart';
import 'package:flare_flutter/base/actor_inner_shadow.dart';
import 'package:flare_flutter/base/actor_jelly_bone.dart';
import 'package:flare_flutter/base/actor_layer_effect.dart';
import 'package:flare_flutter/base/actor_layer_effect_renderer.dart';
import 'package:flare_flutter/base/actor_mask.dart';
import 'package:flare_flutter/base/actor_node.dart';
import 'package:flare_flutter/base/actor_node_solo.dart';
import 'package:flare_flutter/base/actor_path.dart';
import 'package:flare_flutter/base/actor_polygon.dart';
import 'package:flare_flutter/base/actor_rectangle.dart';
import 'package:flare_flutter/base/actor_root_bone.dart';
import 'package:flare_flutter/base/actor_rotation_constraint.dart';
import 'package:flare_flutter/base/actor_scale_constraint.dart';
import 'package:flare_flutter/base/actor_shadow.dart';
import 'package:flare_flutter/base/actor_shape.dart';
import 'package:flare_flutter/base/actor_skin.dart';
import 'package:flare_flutter/base/actor_skinnable.dart';
import 'package:flare_flutter/base/actor_star.dart';
import 'package:flare_flutter/base/actor_targeted_constraint.dart';
import 'package:flare_flutter/base/actor_transform_constraint.dart';
import 'package:flare_flutter/base/actor_translation_constraint.dart';
import 'package:flare_flutter/base/actor_triangle.dart';
import 'package:flare_flutter/base/animation/actor_animation.dart';
import 'package:flare_flutter/base/animation/interpolation/cubic.dart';
import 'package:flare_flutter/base/animation/interpolation/cubic_ease.dart';
import 'package:flare_flutter/base/animation/interpolation/hold.dart';
import 'package:flare_flutter/base/animation/interpolation/interpolator.dart';
import 'package:flare_flutter/base/animation/interpolation/linear.dart';
import 'package:flare_flutter/base/animation/keyframe.dart';
import 'package:flare_flutter/base/animation/property_types.dart';
import 'package:flare_flutter/base/binary_reader.dart';
import 'package:flare_flutter/base/block_reader.dart';
import 'package:flare_flutter/base/block_types.dart';
import 'package:flare_flutter/base/dependency_sorter.dart';
import 'package:flare_flutter/base/jelly_component.dart';
import 'package:flare_flutter/base/json_block_reader.dart';
import 'package:flare_flutter/base/json_reader.dart';
import 'package:flare_flutter/base/math/aabb.dart';
import 'package:flare_flutter/base/math/mat2d.dart';
import 'package:flare_flutter/base/math/transform_components.dart';
import 'package:flare_flutter/base/math/vec2d.dart';
import 'package:flare_flutter/base/path_point.dart';
import 'package:flare_flutter/base/stream_reader.dart';
import 'package:flare_flutter/base/transform_space.dart';
import 'package:flare_flutter/cache.dart';
import 'package:flare_flutter/cache_asset.dart';
import 'package:flare_flutter/flare.dart';
import 'package:flare_flutter/flare_actor.dart';
import 'package:flare_flutter/flare_cache.dart';
import 'package:flare_flutter/flare_cache_asset.dart';
import 'package:flare_flutter/flare_cache_builder.dart';
import 'package:flare_flutter/flare_controller.dart';
import 'package:flare_flutter/flare_controls.dart';
import 'package:flare_flutter/flare_render_box.dart';
import 'package:flare_flutter/flare_testing.dart';
import 'package:flare_flutter/provider/asset_flare.dart';
import 'package:flare_flutter/provider/memory_flare.dart';
import 'package:flare_flutter/trim_path.dart';