DPLYR-dev / SplashScreenFlutterPackage

A small splashscreen used as intro for flutter applications easily with a lot of customizations ❤️🥳
MIT License
294 stars 122 forks source link

Invalid argument(s): widget.routeName must be a String beginning with forward slash (/) #52

Closed Nkurayijahubert closed 3 years ago

Nkurayijahubert commented 3 years ago

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, ), ), ) ); } }

mrtungdev commented 3 years ago

Same here

edukmattos commented 3 years ago

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, ),

mrtungdev commented 3 years ago

@Nkurayijahubert just waiting author pub new version or follow this file merged #51 to temporarily running

marceloreis13 commented 3 years ago

I'm facing the same thing here

Akiat commented 3 years ago

The same here. The fix with routeName works perfectly but it will be great to push the #51 in a new version 👍

KarimMohamed20 commented 3 years ago

Sorry for being late, Currently there is a new version at pub.dev without this issue.