ColorfulCubeView class
(en) A view widget of colorful cubes rotating and falling.
(ja) カラフルなキューブが回転しながら落下するビューです。
Author Masahide Mori
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ColorfulCubeView
Constructors
- ColorfulCubeView({required Widget child, required Size viewSize, bool isRandomPositionY = true, int frontObjNum = 20, int backObjNum = 20, VRange frontObjSize = const VRange(min: 8, max: 32), VRange backObjSize = const VRange(min: 8, max: 32), EnumDropType dropType = EnumDropType.spinDrop3D, int fps = 60, double minBrightness = 0.0, Sp3dPhysics customPhysicsCreation()?, Key? key})
-
child: A child view will placed between the front and back layers.viewSize: This view size.isRandomPositionY: Specifies whether to randomize the y-coordinate at which the object starts falling.frontObjNum: Number of front layer objects you want to generate.backObjNum: Number of back layer objects you want to generate.frontObjSize: The size range of the objects you want to generate in front layer. A randomly sized object is generated within the range.backObjSize: The size range of the objects you want to generate in back layer. A randomly sized object is generated within the range.dropType: Specifying the type of animation while falling.fps: The screen fps.minBrightness: The maximum magnification of how dark the object will be when rotated. 0 is the darkest, and 1 means the brightness will not change.customPhysicsCreation: You can create your own behavior and use it. If this is not null, the dropType parameter is ignored.const
Properties
- backObjNum → int
-
final
- backObjSize → VRange
-
final
- child → Widget
-
final
- customPhysicsCreation → Sp3dPhysics Function()?
-
final
- dropType → EnumDropType
-
final
- fps → int
-
final
- frontObjNum → int
-
final
- frontObjSize → VRange
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRandomPositionY → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- minBrightness → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- viewSize → Size
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createObj(
VRange targetSize) → Sp3dObj - Creates an object with the specified size range.
-
createState(
) → State< ColorfulCubeView> -
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