OverflowClipBox class

A convenient widget which makes widgets overflow-able by wrapping OverflowBox and ClipRect, which can be controlled by useOverflowBox and useClipRect.

Inheritance

Constructors

OverflowClipBox({Key? key, required Widget child, bool useOverflowBox = true, OverflowDirection direction = OverflowDirection.vertical, Alignment alignment = Alignment.topCenter, bool useClipRect = true, Clip clipBehavior = Clip.hardEdge, double? width, double? height, EdgeInsets? padding, EdgeInsets? margin})
const

Properties

alignment Alignment
The child alignment for OverflowBox, defaults to Alignment.topCenter.
final
child Widget
The widget below this widget in the tree.
final
clipBehavior Clip
The clip behavior for ClipRect, defaults to Clip.hardEdge.
final
direction OverflowDirection
The overflow direction for OverflowBox, defaults to OverflowDirection.vertical.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
The width of outer OverflowBox and ClipRect, which may be set when using OverflowDirection.vertical.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin EdgeInsets?
The margin insets of outer OverflowBox and ClipRect.
final
padding EdgeInsets?
The padding insets of inner child.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useClipRect bool
The flag to decide whether to use ClipRect or not, defaults to true.
final
useOverflowBox bool
The flag to decide whether to use OverflowBox or not, defaults to true.
final
width double?
The width of outer OverflowBox and ClipRect, which may be set when using OverflowDirection.horizontal.
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.
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