Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Glitch on animation #450

Open
stact opened this issue Jan 31, 2025 · 0 comments
Open

Glitch on animation #450

stact opened this issue Jan 31, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@stact
Copy link

stact commented Jan 31, 2025

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

@stact stact added the bug Something isn't working label Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant