-
Notifications
You must be signed in to change notification settings - Fork 222
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
I'm playing around with Vector Feathering but the assets that I have fail to render (see attached screenshot).
Steps To Reproduce
Here's a minimal reproducible example.
lib/main.dart
import 'package:flutter/material.dart';
import 'package:rive/rive.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: RiveAnimation.asset(
'assets/animation.riv',
fit: BoxFit.contain,
useArtboardSize: true,
),
),
),
);
}
}
pubspec.yaml
name: rive_feathering
description: ""
publish_to: 'none'
version: 1.0.0+1
environment:
sdk: ^3.7.0
dependencies:
flutter:
sdk: flutter
rive: ^0.13.20
flutter:
uses-material-design: true
assets:
- assets/
This results in the following error:
════════ Exception caught by rendering library ═════════════════════════════════
RangeError (length): Invalid value: Not in inclusive range 0..1: 2
The relevant error-causing widget was:
RiveAnimation RiveAnimation:file:///Users/<path_to_project>/rive_feathering/lib/main.dart:16:32
════════════════════════════════════════════════════════════════════════════════
Source .riv/.rev file
Here's the project and the asset.
Archive.zip
Expected behavior
I would expect the animation to look as in the rive editor and not raise any error.
Screenshots
Screenshot from iPhone 16 simulator.

Screenshot of the expected result in the editor.

Device & Versions (please complete the following information)
- Device: iOS Simulator
- OS: iOS 18.2
- Flutter Version:
Flutter 3.29.0 • channel stable • https://github.com/flutter/flutter.git Framework • revision 35c388afb5 (3 weeks ago) • 2025-02-10 12:48:41 -0800 Engine • revision f73bfc4522 Tools • Dart 3.7.0 • DevTools 2.42.2
MarieBrinkmeier, 7ANV1R, stormmuller, nateshmbhat and chungxon
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working