Thicken class

A widget that creates a thick visual effect by stacking multiple layers of a given child widget with slight translations based on the thickness value.

The number of layers is calculated based on the thickness.

The higher the thickness value, the more layers will be created, giving the illusion of depth and thickness.

Example usage:

Thicken(
  pixelRatio: 10.0,
  thickness: 3.0,
  child: Icon(
    Icons.star,
    size: 50,
  ),
)

pixelRatio : Is the sharpness quality of the stroke.

thickness : The amount of thickness to apply to the child. Higher values will create more layers. (It is not recommended to set thickness greater than 1.0)

child : The widget that will be "thickened" by drawing multiple layers.

Inheritance

Constructors

Thicken.new({Key? key, double pixelRatio = 2.0, required double thickness, required Widget child})
Creates a Thicken widget.
const

Properties

child Widget
The child widget that will be thickened with multiple layers.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
layers int
The number of layers calculated based on the thickness value.
no setter
pixelRatio double
The sharpness quality of the strokes used to create the thickening effect. The bigger the value, the smoother the strokes will be and the more resources will be used.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thickness double
The amount of thickness applied. The thickness controls how many layers of the child widget are created. A higher thickness value creates more layers and larger translations between them. (It is not recommended to set thickness greater than 1.0)
final

Methods

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