Files
ReelShort/lib/pages/following/following_keep_alive_tab.dart

25 lines
568 B
Dart

// 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<FollowingKeepAliveTab> createState() => _FollowingKeepAliveTabState();
}
class _FollowingKeepAliveTabState extends State<FollowingKeepAliveTab>
with AutomaticKeepAliveClientMixin {
@override
bool get wantKeepAlive => true;
@override
Widget build(BuildContext context) {
super.build(context);
return widget.child;
}
}