SplashScreen class

The SplashScreen widget is a highly customizable splash screen for Flutter applications.

Inheritance

Constructors

SplashScreen({Key? key, BackgroundImageDecoration? backgroundImageDecoration, Color? backgroundColor, Gradient? gradient, Widget? title, Widget? subtitle, Widget? loadingIndicator, bool bottomLoading = false, Duration? duration = const Duration(seconds: 3), Done? done, bool showStatusBar = false})
const

Properties

backgroundColor Color?
The background color of the splash view.
final
backgroundImageDecoration BackgroundImageDecoration?
An image decoration to use as the background of the splash view.
final
bottomLoading bool
If true, the loading indicator will be positioned at the bottom, pushing other content upwards.
final
done Done?
The Done object that specifies the next page and its transition after the splash screen duration is complete.
final
duration Duration?
The duration for which the splash screen will be displayed before redirecting to the next page.
final
gradient Gradient?
A gradient to use as the background of the splash view.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loadingIndicator Widget?
The widget to display as the loading indicator of the splash view.
final
The widget to display as the main logo of the splash view.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showStatusBar bool
If true, the app status/navigation bar will be shown on the splash view. If false, it will be hidden.
final
subtitle Widget?
The widget to display as the subtitle of the splash view.
final
title Widget?
The widget to display as the title of the splash view.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<SplashScreen>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited