FlowDelegate class
A delegate that controls the appearance of a flow layout.
Flow layouts are optimized for moving children around the screen using transformation matrices. For optimal performance, construct the FlowDelegate with an Animation that ticks whenever the delegate wishes to change the transformation matrices for the children and avoid rebuilding the Flow widget itself every animation frame.
See also:
Constructors
- FlowDelegate({Listenable repaint })
-
The flow will repaint whenever
repaint
notifies its listeners.const
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
getConstraintsForChild(
int i, BoxConstraints constraints) → BoxConstraints - Override to control the layout constraints given to each child. [...]
-
getSize(
BoxConstraints constraints) → Size - Override to control the size of the container for the children. [...]
-
paintChildren(
FlowPaintingContext context) → void - Override to paint the children of the flow. [...]
-
shouldRelayout(
covariant FlowDelegate oldDelegate) → bool - Override this method to return true when the children need to be laid out. This should compare the fields of the current delegate and the given oldDelegate and return true if the fields are such that the layout would be different.
-
shouldRepaint(
covariant FlowDelegate oldDelegate) → bool - Override this method to return true when the children need to be repainted. This should compare the fields of the current delegate and the given oldDelegate and return true if the fields are such that paintChildren would act differently. [...]
-
toString(
) → String -
Override this method to include additional information in the
debugging data printed by debugDumpRenderTree and friends. [...]
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited