RiveConfig constructor
const
RiveConfig({
- List<
String> stateMachineName = const [], - List<
String> animations = const [], - String? artboardName,
- BoxFit fit = BoxFit.contain,
- bool autoplay = true,
- Alignment alignment = Alignment.center,
- List<
RiveAnimationController> controllers = const [], - void onInit(
- Artboard
- bool useSafeArea = false,
- FileAssetLoader? assetLoader,
- bool loadCdnAssets = true,
- ObjectGenerator? objectGenerator,
- Rect? clipRect,
- bool isTouchScrollEnabled = false,
- double speedMultiplier = 1,
- RiveHitTestBehavior behavior = RiveHitTestBehavior.opaque,
- bool useArtboardSize = false,
- bool antialiasing = true,
- bool enablePointerEvents = false,
- MouseCursor cursor = MouseCursor.defer,
- Map<
String, String> ? headers, - Widget? placeHolder,
- Duration? splashDuration,
Creates a configuration for Rive animation splash screens
Implementation
const RiveConfig({
this.stateMachineName = const [],
this.animations = const [],
this.artboardName,
this.fit = BoxFit.contain,
this.autoplay = true,
this.alignment = Alignment.center,
this.controllers = const [],
this.onInit,
this.useSafeArea = false,
this.assetLoader,
this.loadCdnAssets = true,
this.objectGenerator,
this.clipRect,
this.isTouchScrollEnabled = false,
this.speedMultiplier = 1,
this.behavior = RiveHitTestBehavior.opaque,
this.useArtboardSize = false,
this.antialiasing = true,
this.enablePointerEvents = false,
this.cursor = MouseCursor.defer,
this.headers,
this.placeHolder,
this.splashDuration,
});