创建一个存活状态容器。
child 为需要显示的子组件,keepAlive 决定其离开可视区域后是否保留状态。
child
keepAlive
const AliveView({super.key, required this.child, this.keepAlive = true});