构造函数
const CustomAnimatedSwitcher({ required this.child, super.key, this.duration = const Duration(milliseconds: 200), });