Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Nkurayijahubert opened this issue Nov 8, 2020 · 6 comments

Comments

@Nkurayijahubert
Copy link

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
Copy link

Same here

@edukmattos
Copy link

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
Copy link

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

@marceloreis13
Copy link

I'm facing the same thing here

@Akiat
Copy link

Akiat commented Nov 13, 2020

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

@KarimMohamed20
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants