Open sadik5397 opened 2 years ago
@override Widget build(BuildContext context) { return AnimatedSplashScreen( splash: 'images/splash.png', nextScreen: MainScreen(), splashTransition: SplashTransition.rotationTransition, pageTransitionType: PageTransitionType.scale, //error: Undefined name 'pageTransitionType' ); }
Dear @sadik5397
Try to add this in your file: import 'package:page_transition/page_transition.dart';
or install this package: flutter pub add page_transition
Thanks. It works
@override Widget build(BuildContext context) { return AnimatedSplashScreen( splash: 'images/splash.png', nextScreen: MainScreen(), splashTransition: SplashTransition.rotationTransition, pageTransitionType: PageTransitionType.scale, //error: Undefined name 'pageTransitionType' ); }