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

Artboard internal size doesn't update with artboard size animation #378

Open
FilledStacks opened this issue Apr 18, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@FilledStacks
Copy link

Description

I'm creating an expandable animation in rive.

This animation has keyframes on the artboard as well and animates the size of the artboard as expected.

In code (flutter) when I set useArtboardSize true, the size actually doesn't change.

So I added code to adjust the size of the animation externally, which then revealed to me that the artboard size for the RiveAnimation is never updated.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Create a simple rive animation that grows the height of the artboard by 100px and make it grow and shrink on Pointer Down.
  2. Add two instances of the animation to a column
  3. Run the app and collapse or expand the top one
  4. See error that the spacing between the two isn't collapsed

I expect the artboard, and therefore the bounds of the animation to change if the artboard is being animated in the timeline.

Screenshots

Here is a video demonstrating the problem.

Rive-artboard-resize-bug.mp4

Device & Versions (please complete the following information)

  • Device: Every device available
  • OS: Android, iOS, MacOS, Web
  • Flutter Version:
Flutter 3.19.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 300451adae (3 weeks ago) • 2024-03-27 21:54:07 -0500
Engine • revision e76c956498
Tools • Dart 3.3.3 • DevTools 2.31.1
@FilledStacks FilledStacks added the bug Something isn't working label Apr 18, 2024
@HayesGordon
Copy link
Contributor

I'm just following up to say that this is something that falls part of a bigger feature we're working on called Layouts. At this time the above is not yet supported, but once layouts launch the runtimes will be updated to support more of this.

@FilledStacks
Copy link
Author

@HayesGordon I assume this is also fixed with the new layouts announcement 😍 I'm testing it out tomorrow and will report back.

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

2 participants