splashscreen_extend 1.0.0 copy "splashscreen_extend: ^1.0.0" to clipboard
splashscreen_extend: ^1.0.0 copied to clipboard

discontinuedreplaced by: splashscreen

A Flutter package which provides a basic SplashScreen with the ability to launch a widget from a future object, display a logo and a loading indicator.

SplashScreen Extend #

A Flutter package which provides a basic SplashScreen.

Getting Started #

Just use the SplashScreen widget in your MaterialApp, provide a future which delivers a widget and that's it.

Example #

Future<Widget> loadAndLaunch() async {

  // Do some start up things or let the app just wait:
  await Future.delayed(const Duration(seconds: 2), () => "2");

  return MaterialApp(
    home: SafeArea(
      child: SomePage(),
    ),
  );
}

Future<void> main() async {
  runApp(
    MaterialApp(
      title: 'Demo',
      home: SafeArea(
        child: SplashScreen(
          widgetToNavigateAfterFuture: loadAndLaunch(),
          backgroundColor: Colors.red,
          logo: Image.asset(
            'assets/images/logo-splashscreen.png',
          ),
        ),
      ),
    ),
  );
}

Features #

  • Provide Future
  • Provide Logo as Image, customize placement and size
  • Provide Circular Progress Indicator, customize placement and size

Why? #

I made this package since the original SplashScreenFlutterPackage got archived

1
likes
30
pub points
0%
popularity

Publisher

verified publishervace.media

A Flutter package which provides a basic SplashScreen with the ability to launch a widget from a future object, display a logo and a loading indicator.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on splashscreen_extend