Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

automatic keepalive flutter tabs

class _DealListState extends State<DealList> with AutomaticKeepAliveClientMixin<DealList> {
  @override
  bool get wantKeepAlive => true;

  @override
  Widget build(BuildContext context) {
    super.build(context); // need to call super method.
    return /* ... */
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #automatic #keepalive #flutter #tabs
ADD COMMENT
Topic
Name
6+2 =