// Author: fruit.com.cn import 'package:flutter/widgets.dart'; class FollowingKeepAliveTab extends StatefulWidget { const FollowingKeepAliveTab({super.key, required this.child}); final Widget child; @override State createState() => _FollowingKeepAliveTabState(); } class _FollowingKeepAliveTabState extends State with AutomaticKeepAliveClientMixin { @override bool get wantKeepAlive => true; @override Widget build(BuildContext context) { super.build(context); return widget.child; } }