first commit

This commit is contained in:
benjibennn
2023-12-27 16:10:09 +08:00
commit 4f35362cf9
370 changed files with 108340 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import 'package:flutter/material.dart';
class KeepAliveWidgetWrapper extends StatefulWidget {
const KeepAliveWidgetWrapper({
Key? key,
required this.builder,
}) : super(key: key);
final WidgetBuilder builder;
@override
State<KeepAliveWidgetWrapper> createState() => _KeepAliveWidgetWrapperState();
}
class _KeepAliveWidgetWrapperState extends State<KeepAliveWidgetWrapper>
with AutomaticKeepAliveClientMixin {
@override
bool get wantKeepAlive => true;
@override
Widget build(BuildContext context) {
super.build(context);
return widget.builder(context);
}
}