GlitterScreen class

Widget for displaying a screen with customizable glitter effects.

Inheritance

Constructors

GlitterScreen({Key? key, int numberOfParticles = 5, double speedOfParticles = 3.0, double? width, double? height, List<Color> particleColors = const [Colors.red, Colors.green, Colors.blue], bool isRandomColor = true, ParticleShape particleShape = ParticleShape.circle, double particleLifespan = 2.0, bool applyGravity = false, int initialBurst = 10, int trailLength = 5, Color outerBoxColor = Colors.red, double outerBoxBorderWidth = 1, Widget? child})
Constructor with default parameter values.
const

Properties

applyGravity bool
Flag to apply gravity to particles.
final
child Widget?
Child widget to be displayed behind the particles.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
Height of the CustomPaint widget.
final
initialBurst int
Number of particles emitted on initial user interaction.
final
isRandomColor bool
Flag to use random colors if true, else use particleColors.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
numberOfParticles int
Number of particles emitted per interaction.
final
outerBoxBorderWidth double
Width of the outer screen/container border
final
outerBoxColor Color
Color of the outer screen/container border
final
particleColors List<Color>
List of colors for particles.
final
particleLifespan double
Lifespan of each particle.
final
particleShape ParticleShape
Shape of particles (circle, square, triangle, all).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speedOfParticles double
Speed of particles.
final
trailLength int
Length of particle trail.
final
width double?
Width of the CustomPaint widget.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<GlitterScreen>
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}) 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