automatic keepalive flutter tabs code example
Example 1: automatic keepalive flutter tabs
Future<...> _loadingDeals;
@override
void initState() {
_loadingDeals = loadDeals();
super.initState();
}
@override
Widget build(BuildContext context) {
super.build(context);
return new FutureBuilder(future: _loadingDeals, );
}
Example 2: 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);
return
}
}