Text feature error in Flutter App - "RangeError"
NashIlli opened this issue · comments
NashIlli commented
Description
There is an error when trying to use a Rive file with a Text (new feature of River). The text it is not rendered and shows an error in the console related to "paragraph index".
Steps To Reproduce
Steps to reproduce the behavior:
- Create an empty new Flutter project
- Install latest version of rive (0.11.16)
- Add RiveAnimation.asset('...') widget to the renderized main widget. Use the file attached. It's a super simple text in a Rive artboard.
- The following error appear:
======== Exception caught by rendering library =====================================================
The following RangeError was thrown during paint():
RangeError (index): Invalid value: Only valid value is 0: 1
Source .riv
/.rev
file
Expected behavior
The RiveAnimation with text should be renderized in the Flutter App.
Screenshots
Device & Versions (please complete the following information)
- Device: Android Emulator
- OS: Android SDK API Level 33
- Flutter Version:
Flutter 3.13.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ff5b5b5fa6 (13 days ago) • 2023-08-24 08:12:28 -0500
Engine • revision b20183e040
Tools • Dart 3.1.0 • DevTools 2.25.0
NashIlli commented
It was using Gradle 7.5
After updating to Gradle 8 it worked properly
Sheetal Savani commented
I'm using rive: ^0.12.4 and gradle 8 still having the same error