Skip to content

Commit fde34d5

Browse files
devilbuddymagnus.ornebring
andauthored
Add support for 'useArtboardSize' argument in rive integration (#487)
## What does this change? Add support for 'useArtboardSize' argument in rive integration Fixes #486 🎯 ## Type of change - [x] New feature (non-breaking change which adds functionality) Co-authored-by: magnus.ornebring <[email protected]>
1 parent 2db938f commit fde34d5

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

examples/example/lib/gen/assets.gen.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ class RiveGenImage {
383383
Alignment? alignment,
384384
Widget? placeHolder,
385385
bool antialiasing = true,
386+
bool useArtboardSize = false,
386387
List<RiveAnimationController> controllers = const [],
387388
OnInitCallback? onInit,
388389
}) {
@@ -395,6 +396,7 @@ class RiveGenImage {
395396
alignment: alignment,
396397
placeHolder: placeHolder,
397398
antialiasing: antialiasing,
399+
useArtboardSize: useArtboardSize,
398400
controllers: controllers,
399401
onInit: onInit,
400402
);

packages/core/lib/generators/integrations/rive_integration.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ ${isPackage ? "\n static const String package = '$packageName';" : ''}
2929
Alignment? alignment,
3030
Widget? placeHolder,
3131
bool antialiasing = true,
32+
bool useArtboardSize = false,
3233
List<RiveAnimationController> controllers = const [],
3334
OnInitCallback? onInit,
3435
}) {
@@ -41,6 +42,7 @@ ${isPackage ? "\n static const String package = '$packageName';" : ''}
4142
alignment: alignment,
4243
placeHolder: placeHolder,
4344
antialiasing: antialiasing,
45+
useArtboardSize: useArtboardSize,
4446
controllers: controllers,
4547
onInit: onInit,
4648
);

packages/core/test_resources/actual_data/assets_rive_integrations.gen.dart

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)