While all the answers produces the desired effects we should do some improvements here.įirst of all in most cases (speaking about auto scrolling) is useless using postFrameCallbacks because some stuff could be rendered after the ScrollController attachment (produced by the attach method), the controller will scroll until the last position that he knows and that position could not be the latest in your view. import 'dart:collection' Ĭlass MyApp extends StatelessWidget build(BuildContext context) ")) ĭuration: const Duration(milliseconds: 300), If you use a shrink-wrapped ListView with reverse: true, scrolling it to 0.0 will do what you want.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |