rive-app / rive-flutter

Flutter runtime for Rive
https://rive.app
MIT License
1.16k stars 180 forks source link

Text feature error in Flutter App - "RangeError" #344

Closed NashIlli closed 9 months ago

NashIlli commented 10 months ago

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:

  1. Create an empty new Flutter project
  2. Install latest version of rive (0.11.16)
  3. Add RiveAnimation.asset('...') widget to the renderized main widget. Use the file attached. It's a super simple text in a Rive artboard.
  4. 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

text-rive-test.zip

Expected behavior

The RiveAnimation with text should be renderized in the Flutter App.

Screenshots

image

Device & Versions (please complete the following information)

NashIlli commented 9 months ago

It was using Gradle 7.5 After updating to Gradle 8 it worked properly

sheetalsavani commented 5 months ago

I'm using rive: ^0.12.4 and gradle 8 still having the same error