GeekyAnts / flutter-login-home-animation

Other
1.24k stars 284 forks source link

settings.isInitialRoute isnt defined in RouteSettings #12

Open axilaris opened 4 years ago

axilaris commented 4 years ago

I tried to run this project but stumbled upon this.

in Routes.dart:

if (settings.isInitialRoute) return child;

there is this error:

Compiler message: lib/Routes.dart:37:18: Error: The getter 'isInitialRoute' isn't defined for the class 'RouteSettings'.

Amritanshu786 commented 3 years ago

Instead of using "setting.isInitialRoute" try to use "settings.name=='/' ". Hope this will work.