Currently, the rich_text_controller package highlights any word input by the user, even if it has already been highlighted previously. For example, if a hospital name is already highlighted, and the user types that name again, it should not highlight the word a second time.
Expected Behavior:
If a word (such as a hospital name) is already highlighted, it should not be highlighted again when entered by the user. There should be a bool property to prevent the word from being highlighted more than once.
Steps to Reproduce:
1. Highlight a word (e.g., a hospital name) in the text field.
2. Enter the same word again.
3. The word gets highlighted again, which should not happen.
Suggested Fix:
Implement a bool property that prevents the word from being highlighted more than once when it’s already been highlighted.
Currently, the rich_text_controller package highlights any word input by the user, even if it has already been highlighted previously. For example, if a hospital name is already highlighted, and the user types that name again, it should not highlight the word a second time.
Expected Behavior:
If a word (such as a hospital name) is already highlighted, it should not be highlighted again when entered by the user. There should be a bool property to prevent the word from being highlighted more than once.
Steps to Reproduce:
1. Highlight a word (e.g., a hospital name) in the text field.
2. Enter the same word again.
3. The word gets highlighted again, which should not happen.
Suggested Fix:
Implement a bool property that prevents the word from being highlighted more than once when it’s already been highlighted.