rive_canvas 0.0.4 copy "rive_canvas: ^0.0.4" to clipboard
rive_canvas: ^0.0.4 copied to clipboard

This package helps rendering Rives on a canvas directly. It also comes with a RiveComponent for the Flame game engine.

Rive Canvas #

A package to make rive even more great

This package helps rendering Rives on a canvas directly. It also comes with a RiveComponent for the Flame game engine.

You can use rive_canvas to: #

  • draw (currently non animatable) rives directly on a canvas:
canvas.drawStaticRiveRect(riveFile.mainArtboard, Rect.fromLTWH(20, 150, 50, 50));
  • draw rives as a Component in a Flame game:
class RiveGame extends BaseGame {
   RiveGame() {
       add(Background());
       add(RiveComponent.fromPath(
           'assets/rive/test.riv', 
           animationController: SimpleAnimation('drip')
      ));
   }
}

For a more detailed example got to examples or Github

If you have issues or need help, come to Github

3
likes
30
pub points
0%
popularity

Publisher

verified publisherbrachy84.me

This package helps rendering Rives on a canvas directly. It also comes with a RiveComponent for the Flame game engine.

Homepage
Repository (GitHub)
View/report issues

License

GPL-3.0 (LICENSE)

Dependencies

flame, flutter, rive

More

Packages that depend on rive_canvas