desconexo / highlight_text

A flutter plugin to highlight words from a text
MIT License
30 stars 22 forks source link

RangeError (index): Invalid value: Valid value range is empty: -1 #10

Closed BSiddharth closed 3 years ago

BSiddharth commented 4 years ago

Having a space at the end of the string ( for example "This is a string " ) throws RangeError (index): Invalid value: Valid value range is empty: -1. Removing the space ( for example "This is a string" ) fixes the problem. There might be a problem in the way string is parsed

desconexo commented 3 years ago

Hi, I'm currently reworking this package and this problem it's not happening anymore. Soon i'll upload it