clean-code-dev / animated_splash_screen

The easiest way to create your animated splash screen in a fully customizable way.
MIT License
114 stars 26 forks source link

PageTransitionType don't found #50

Closed FabioTambu closed 1 year ago

FabioTambu commented 1 year ago

Hi, I'm using your package and I'm having a problem with the PageTransitionType. When I try to add it it says it doesn't exist and reports it as an error, here is my code:

return AnimatedSplashScreen(
          duration: 5000,
          splash: const Image(image: AssetImage('assets/images/logo_tefatech.png'), width: 200, height: 200),
          splashTransition: SplashTransition.fadeTransition,
          backgroundColor: Colors.blue,
          pageTransitionType: PageTransitionType.scale,
          nextScreen: const CheckUserLogin()
      );
WelintonJuniorCeconello commented 1 year ago

Hello, @FabioTambu!

Add: import 'package:page_transition/page_transition.dart';