Want to scroll item in ListView so it is visible? You can use the following library from quire-io team to scroll ListView to the position:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ListView( scrollDirection: scrollDirection, controller: controller, children: randomList.map<Widget>((data) { final index = data[0]; final height = data[1]; return AutoScrollTag( key: ValueKey(index), controller: controller, index: index, child: Text('index: $index, height: $height'), highlightColor: Colors.black.withOpacity(0.1), ); }).toList(), ) |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.