How do I notify widgets in Flutter?

And as with more things in Flutter, you listen to a Notification using another Widget: NotificationListener. var widget = Scaffold( body: NotificationListener<ScrollNotification>( onNotification: (notification) { //do things with the notification here return true; }, child: Container( child: …, ), ), );

Sizin İçin Seçtik  Can you build backend with flutter?

Leave a Reply

Your email address will not be published. Required fields are marked *

How do I notify widgets in Flutter?

And as with more things in Flutter, you listen to a Notification using another Widget: NotificationListener. var widget = Scaffold( body: NotificationListener<ScrollNotification>( onNotification: (notification) { //do things with the notification here return true; }, child: Container( child: …, ), ), );

Sizin İçin Seçtik  Why do you need to call setState (() }) in a stateful widget when changing some internal data )?

Leave a Reply

Your email address will not be published. Required fields are marked *