Answers for "how to keep the state of my widgets after scrolling? flutter"

0

how to keep the state of my widgets after scrolling? flutter

You can use AutomaticKeepAliveClientMixin of yout class widget to prevent your items to be 
disposed when scrolled.

class _widgetState extends State<MyVideoPlayer> with AutomaticKeepAliveClientMixin { ...
//implement with
 @override
  bool get wantKeepAlive => true;
Posted by: Guest on May-01-2022

Code answers related to "how to keep the state of my widgets after scrolling? flutter"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language