Ana içeriğe atla

Flutter scrolling with button.

For this process; The jumpTo () method can be used for the scrollController used.


for example :


scrollController.jumpTo (0);

               👇👇👇

goes to the bottom of the page.

Yorumlar

Bu blogdaki popüler yayınlar

Flutter was used after being disposed. Once you have called dispose()

 Exception : was used after being disposed. Once you have called dispose() Solved :                                        ChangeNotifierProvider < Message Provider >(                 create: (_) =>  Message Provider (),),                            Change use to : 👇👇👇                                        ChangeNotifierProvider < Message Provider >. value (   ...

Flutter stream disconnects after making changes in widget

  Exception : Stream disconnects after making changes in widget.   Solved :   👇👇👇 You must call the widget you want to change at runtime from a different build method in a different class. Thus, each time you build only the widget you want to make changes and you do not affect the stream. This also increases the performance. for example ; class   MyClass   extends   StatelessWidget  {    const   MyClass  ({      Key  key,   }) :  super (key: key);    Widget   build ( BuildContext  context) {         return   Widget to change at runtime() } MyClass()     👈👈👈   You can call it from anywhere in the widget tree.