rive_animation_manager library

Rive Animation Manager - A comprehensive Flutter package for managing Rive animations

This library provides:

  • Global animation state management via RiveAnimationController
  • Reusable RiveManager widget for displaying animations
  • Data binding property discovery and management
  • Image replacement and caching
  • Input handling (triggers, booleans, numbers)
  • Text run management
  • Event handling
  • Performance monitoring and caching

Basic Usage

import 'package:rive_animation_manager/rive_animation_manager.dart';

// Display an animation
RiveManager(
  animationId: 'myAnimation',
  riveFilePath: 'assets/animations/my_animation.riv',
  animationType: RiveAnimationType.stateMachine,
  onInit: (artboard) {
    print('Animation loaded!');
  },
)

// Control animations globally
final controller = RiveAnimationController.instance;
controller.updateBool('myAnimation', 'isHovered', true);
controller.triggerInput('myAnimation', 'playEffect');

For more examples and documentation, see:

Classes

HeadlessRivePainter
A RenderTexturePainter that drives Rive animation rendering into a GPU texture without requiring visible widget output.
LogManager
Manages logging for the Rive Animation Manager package.
RiveAnimationController
Global singleton controller for managing all Rive animations across the app.
RiveManager
Modern RiveManager widget with full rive_native support
RiveManagerState
State for RiveManager widget

Enums

RiveAnimationType
Enum to define the type of Rive animation playback
RiveRenderMode
Rendering mode for RiveManager.