Results 2 issues of wudb

自定义搜索建议的tableviewcell后,点击cell,会更改searchBar的text 用_swSelf.searchBar.text = didSelectCell.textLabel.text; 既然都自定义cell了,cell的textLabel是不一定有值的,所以searchBar的text变为空了,很奇怪啊! 这时候再拿searchBar的text就不正确了。 建议去掉这句代码

错误如下: The following StateError was thrown during paint(): Bad state: No element When the exception was thrown, this was the stack: #0 List.single (dart:core-patch/growable_array.dart:353:22) #1 TextPainter.getFullHeightForCaret (package:flutter/src/painting/text_painter.dart:1356:122) #2 RenderEditable.getLocalRectForCaret (package:flutter/src/rendering/editable.dart:1801:48)...