SplashSmoke class
A widget that displays a splash screen with a smoke effect before navigating to the next page or performing conditional navigation.
The SplashSmoke widget provides a customizable splash screen with various
visual effects and navigation options.
Parameters:
-
nextPage: The widget to navigate to after the splash screen. This is required unlessconditionalNavigationis provided. -
child: The main content of the splash screen. -
transitionType: The type of transition to use when navigating to the next page. Defaults toTransitionType.fade. -
arguments: Optional arguments to pass to the next page during navigation. -
routeName: The name of the route to navigate to. This is optional. -
backgroundColor: The background color of the splash screen. Defaults toColors.black. -
effectColor: The color of the smoke effect. Defaults toColor.fromRGBO(176, 176, 176, 1). -
duration: The duration of the splash screen. Defaults toDuration(seconds: 8). -
routeDuration: The duration of the transition to the next page. Defaults toDuration(seconds: 1). -
durationColorEffect: The duration of the color effect animation. Defaults toDuration(seconds: 1). -
rotatingLodingWidget: An optional widget to display a rotating loading animation during the splash screen. -
sigmaX: The horizontal blur intensity for the smoke effect. Defaults to100. -
sigmaY: The vertical blur intensity for the smoke effect. Defaults to100. -
curve: The animation curve for the transition. Defaults toCurves.ease. -
conditionalNavigation: An optional parameter for conditional navigation logic. If provided, it overrides thenextPageparameter.
Assertions:
- Either
nextPageorconditionalNavigationsmust be provided. If neither is provided, an assertion error will be thrown.
This widget is highly customizable and can be used to create visually appealing splash screens with smooth transitions and effects.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SplashSmoke
Constructors
- SplashSmoke({Key? key, required Widget nextPage, required Widget child, TransitionType transitionType = TransitionType.fade, Object? arguments, String? routeName, Color backgroundColor = Colors.black, Color effectColor = const Color.fromRGBO(176, 176, 176, 1), Duration duration = const Duration(seconds: 8), Duration routeDuration = const Duration(seconds: 1), Duration durationColorEffect = const Duration(seconds: 1), double sigmaX = 100, double sigmaY = 100, Widget? rotatingLodingWidget, Curve curve = Curves.ease, })
Properties
- arguments → Object?
-
final
- backgroundColor → Color
-
final
- child → Widget
-
final
-
final
- curve ↔ Curve
-
getter/setter pair
- duration → Duration
-
final
- durationColorEffect → Duration
-
final
- effectColor → Color
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- nextPage → Widget
-
final
- rotatingLodingWidget → Widget?
-
final
- routeDuration → Duration
-
final
- routeName → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sigmaX → double
-
final
- sigmaY → double
-
final
- transitionType → TransitionType
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< SplashSmoke> -
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