jaumard / flare_splash_screen

Facilitator for having a Splash Screen with a Flare animation
MIT License
95 stars 20 forks source link

Example does not work #12

Closed BND10706 closed 5 years ago

BND10706 commented 5 years ago

I am new at this, and I tried to follow example, but it wont let me do my redirect to my Home(). I get this error. The argument type Home cant be assigned to the parameter type 'Widget Function(BuildContext)'/

jaumard commented 5 years ago

Hello,

Because you're supposed to pass a WidgetBuilder not a Widget so if you follow the examples (who are working ^^) you should put (context) => Home() and not just Home()