desconexo / highlight_text

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

The <highligth> string is showing when there is 1 keywords #29

Closed KhaerulAnsari closed 2 years ago

KhaerulAnsari commented 2 years ago

How to produce

  1. the words only has key : h, i, g, l, t (highlight)

    please help

desconexo commented 2 years ago

Hi. I was able to reproduce it. I'll try to fix it soon.

wildanlsfs commented 2 years ago

hi, i found something familiar, it's error when you do the text "de"

wildanlsfs commented 2 years ago

hi, i found something familiar, it's error when you do the text "de"

RangeError (index) : Invalid value : Only valid value is 0:30

enloc-port commented 2 years ago

I have created a pull request for this issue: #31

So far it only tackles the default binding = HighlightBinding.all, because even though it works, it is not perfect yet when it comes to putting the correctly cased highlighted word. Plus, it is a different approach than how the current version is implemented. Hence, I firstly wanted to create a proof of concept in case improvements/changes have to be made.

desconexo commented 2 years ago

@enloc-port thank you