rive-flutter icon indicating copy to clipboard operation
rive-flutter copied to clipboard

Artboard internal size doesn't update with artboard size animation

Open FilledStacks opened this issue 1 year ago • 2 comments

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.

https://github.com/rive-app/rive-flutter/assets/3592170/fc5ef361-0f79-41e3-97a6-aff24b39a6b4

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 avatar Apr 18 '24 10:04 FilledStacks

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.

HayesGordon avatar Aug 29 '24 12:08 HayesGordon