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

Add factory constructors to distinguish between timer based or network based instantiation #53

Closed fezu54 closed 3 years ago

fezu54 commented 3 years ago

The current SplashScreen constructor requires the second property although it is not needed when the SplashScreen uses the future based navigation. Hence, I've removed the @required annotation and created two factory constructors which makes the API a bit more self explaining.

ahmedmgh67 commented 3 years ago

This looks like an awesome contribution, I'm reviewing it now to see if we'll merge it. Thanks