Skip to content

Glitch on animation #450

@stact

Description

@stact

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:

  1. Create a dummy app and add the .riv asset https://rive.app/community/files/2753-5927-skins-demo/
  2. 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
        ),
      ],
    );
  }
}
  1. Call this widget from your home page
@override
  Widget build(BuildContext context) {
    return const Scaffold(
      body: FailureAnimation(),
    );
  }
  1. See error ⚠️#### Source .riv/.rev file

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

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions