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

A splash view shows up when an application is loading.

splash_view

rahul chouhan buy-me-a-coffee paypal

Splash View #

A splash view is a short introduction to an application shown when it is launched. In the splash view, basic introductory information, such as the company logo, content, etc. is displayed at the moment the application load.

Sample screenshots are shown below #

flutter_splash_view dart_splash_view apple_splash_view google_splash_view

Getting Started #

Below is an example of how to implement SplashView in a Flutter application. Recommended: Use splash view inside MaterialApp().

void main() {
  runApp(
    MaterialApp(
      debugShowCheckedModeBanner: false,
      home: SplashView(
        image: FlutterLogo(size: 80),
        title: "Splash View",
        home: Home(),
      ),
    ),
  );
}

Hide/Show loading indicator #

By default showLoading is true.

SplashView(
  image: FlutterLogo(size: 80),
  title: "Splash View",
  showLoading: false,
  home: Home(),
),

Change the position of loading indication #

By default bottomLoading is false. It means it's shown in the center of the splash view.

SplashView(
  image: FlutterLogo(size: 80),
  title: "Splash View",
  bottomLoading: true,
  home: Home(),
),

Properties #

Property Type Description
image: Widget To display the logo/image of the splash view.
title: String To display the application name.
titleTextStyle: TextStyle To format and paint title text.
home: Widget Redirect to another splash view, when loading is completed.
seconds: int Redirected time (in seconds).
loading: Widget To set loading indicator of splash view.
showLoading: bool To hide/show the loading widget.
bottomLoading: bool To set the loading widget to the bottom.
backgroundColor: Color To set background color of splash view.
backgroundImage: ImageProvider To set background image of splash view.
backgroundImageFit: BoxFit Applies the sizing semantics of these values.
backgroundImageOpacity: double To set background image opacity.
backgroundImageColorFilter: ColorFilter A color filter is a function that takes two colors, and outputs one color.

Report bugs or issues #

You are welcome to open a ticket on github if any problems arise. New ideas are always welcome.

Copyright and License #

Copyright © 2022 Rahul Chouhan. Licensed under the MIT LICENSE.

71
likes
150
pub points
89%
popularity

Publisher

verified publisherrahulchouhan.me

A splash view shows up when an application is loading.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on splash_view