splashscreen_extend 1.0.0

Flutter Android iOS web

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

0
likes
110
pub points
38%
popularity

Publisher

vace.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

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on splashscreen_extend