MarcusNg / flutter_voice

https://youtu.be/wDWoD1AaLu8
210 stars 119 forks source link

I'm getting this error #5

Open aliabdulrab7 opened 3 years ago

aliabdulrab7 commented 3 years ago

════════ Exception caught by widgets library ═══════════════════════════════════ The following RangeError was thrown building TextHighlight(dirty): RangeError (start): Invalid value: Not in inclusive range 0..35: -1

The relevant error-causing widget was TextHighlight lib/main.dart:103 When the exception was thrown, this was the stack

0 RangeError.checkValidRange (dart:core/errors.dart:328:7)

1 _StringBase.replaceRange (dart:core-patch/string_patch.dart:607:33)

2 TextHighlight._bind

package:highlight_text/highlight_text.dart:75

3 TextHighlight.build

package:highlight_text/highlight_text.dart:52

4 StatelessElement.build

package:flutter/…/widgets/framework.dart:4569 ... ═════════════════════════