Closed Nkurayijahubert closed 3 years ago
Same here
Insert the parameter routeName
SplashScreen( seconds: 2, **routeName: "/",** onClick: () => print("Flutter Egypt"), title: Text( 'Welcome In SplashScreen', style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20.0), ), navigateAfterSeconds: WellcomePage, loaderColor: Colors.transparent, ),
@Nkurayijahubert just waiting author pub new version or follow this file merged #51 to temporarily running
I'm facing the same thing here
The same here. The fix with routeName works perfectly but it will be great to push the #51 in a new version 👍
Sorry for being late, Currently there is a new version at pub.dev without this issue.
It has been working well but after the update you made, it is giving an error.
Here is my code
class WelcomeScreen extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'WKS', home: Scaffold( backgroundColor: kAccentLight, body: SafeArea( child: SplashScreen( seconds: 4, navigateAfterSeconds: App(), title: new Text('Title', style: TextStyle(fontSize: 36, color: kAmber400, fontWeight: FontWeight.bold), ), backgroundColor: kAccent, styleTextUnderTheLoader: new TextStyle(), loaderColor: kBrown900, ), ), ) ); } }