Closed LiangLuDev closed 1 month ago
Nice catch @LiangLuDev!
I'm able to reproduce the issue and isolate the cause. I was erroneously adding an extra space from _buildTextSpan
in FlutterTaggerController
which makes the text length greater than the valid selection range by 1.
This should be fixed in the next version.
Range end 15 is out of text of length 14 'package:flutter/src/services/text_input.dart': Failed assertion: line 968 pos 12: 'range.end >= 0 && range.end <= text.length'