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 unless conditionalNavigation is provided.

  • child: The main content of the splash screen.

  • transitionType: The type of transition to use when navigating to the next page. Defaults to TransitionType.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 to Colors.black.

  • effectColor: The color of the smoke effect. Defaults to Color.fromRGBO(176, 176, 176, 1).

  • duration: The duration of the splash screen. Defaults to Duration(seconds: 8).

  • routeDuration: The duration of the transition to the next page. Defaults to Duration(seconds: 1).

  • durationColorEffect: The duration of the color effect animation. Defaults to Duration(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 to 100.

  • sigmaY: The vertical blur intensity for the smoke effect. Defaults to 100.

  • curve: The animation curve for the transition. Defaults to Curves.ease.

  • conditionalNavigation: An optional parameter for conditional navigation logic. If provided, it overrides the nextPage parameter.

Assertions:

  • Either nextPage or conditionalNavigations must 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

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, ConditionalNavigations? conditionalNavigation})

Properties

arguments Object?
final
backgroundColor Color
final
child Widget
final
conditionalNavigation ConditionalNavigations?
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