const AnimatedFadingWidget({ Key? key, required this.child, required this.duration, }) : super(key: key);