-
Notifications
You must be signed in to change notification settings - Fork 222
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
There is a glitch and I don't know how to fix it, maybe it cause by a recent rive update.
Steps To Reproduce
Steps to reproduce the behavior:
- Create a dummy app and add the .riv asset https://rive.app/community/files/2753-5927-skins-demo/
- Create a widget as followed
import 'package:flutter/material.dart';
import 'package:rive/rive.dart';
class FailureAnimation extends StatelessWidget {
const FailureAnimation({super.key});
@override
Widget build(BuildContext context) {
return RiveAnimation.asset(
'assets/animations/skins.riv', // Replace with your downloaded asset
fit: BoxFit.cover,
controllers: [
OneShotAnimation(
'Idle', // Or Thumbnail
),
],
);
}
}- Call this widget from your home page
@override
Widget build(BuildContext context) {
return const Scaffold(
body: FailureAnimation(),
);
}- See error
⚠️ #### Source.riv/.revfile
Rive file used is: https://rive.app/community/files/2753-5927-skins-demo/
Expected behavior
No glitch ^^)
Screenshots
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2025-01-31.at.11.53.42.mp4
Device & Versions (please complete the following information)
- Device: iOS Simulator
- OS: iOS 17.5
- Flutter Version:
Flutter 3.28.0-0.1.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision 3e493a3e4d (7 weeks ago) • 2024-12-12 05:59:24 +0900
Engine • revision 2ba456fd7f
Tools • Dart 3.7.0 (build 3.7.0-209.1.beta) • DevTools 2.41.0
Additional context
I've also tried to only use Motion State Machine with input Skin to change the skin.
Glitch on superman and astronaut skin
The VS Code preview is not showing the glitch
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working