ExpressiveSplashScreenMark class

The app's mark on its splash ground: a library shape (the shape constructor) or an app's own mark (ExpressiveSplashScreenMark.custom), with an optional wordmark under it in headlineMedium.

Inside an ExpressiveSplashScreen it is the overlay's mark and follows the host's restoring state; on its own (a splash route, a preview) it paints its ground full-bleed and runs its indicator when restoring.

ExpressiveSplashScreenMark(wordmark: 'Steady', ground: ExpressiveSplashScreenGround.primary)
Inheritance

Constructors

ExpressiveSplashScreenMark({ExpressiveMaterialShape? shape = ExpressiveMaterialShape.cookie9Sided, String? wordmark, ExpressiveSplashScreenGround ground = ExpressiveSplashScreenGround.surface, bool restoring = false, Key? key})
A library shape: the loading indicator's sequence while restoring.
const
ExpressiveSplashScreenMark.custom({required ExpressiveSplashScreenMarkBuilder builder, String? wordmark, ExpressiveSplashScreenGround ground = ExpressiveSplashScreenGround.surface, bool restoring = false, Key? key})
An app's own mark: builder draws it (and its own indicator while restoring). Wrap the piece that hands off in an ExpressiveSplashScreenSource; without one the handoff cross-fades.
const

Properties

builder → ExpressiveSplashScreenMarkBuilder?
A custom mark's builder, or null for a shape.
final
ground → ExpressiveSplashScreenGround
What the splash stands on.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
restoring → bool
On its own: whether the mark runs its indicator. Inside an ExpressiveSplashScreen the host decides.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shape → ExpressiveMaterialShape?
The library shape, or null for a custom mark.
final
wordmark → String?
The app's name under the mark.
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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.
override
groundColor(ExpressiveThemeData theme) → Color
The ground's colour in theme.
markColor(ExpressiveThemeData theme) → Color
The mark's colour in theme: what a shape mark is drawn in.
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