ElPositioned class
在 Positioned 的基础上添加 index 权重来调整内容的显示层级
- Inheritance
- Implemented types
- Available extensions
Constructors
- ElPositioned({Key? key, required Object id, int index = 0, double? left, double? top, double? right, double? bottom, double? width, double? height, required Widget child})
-
const
- ElPositioned.directional({Key? key, required TextDirection textDirection, required Object id, int index = 0, double? start, double? top, double? end, double? bottom, double? width, double? height, required Widget child})
-
factory
- ElPositioned.fill({Key? key, required Object id, int index = 0, double? left = 0.0, double? top = 0.0, double? right = 0.0, double? bottom = 0.0, required Widget child})
-
const
- ElPositioned.fromRect({Key? key, required Object id, int index = 0, required Rect rect, required Widget child})
- ElPositioned.fromRelativeRect({Key? key, required Object id, int index = 0, required RelativeRect rect, required Widget child})
Properties
- bottom → double?
-
The distance that the child's bottom edge is inset from the bottom of the stack.
finalinherited
- child → Widget
-
The widget below this widget in the tree.
finalinherited
- debugTypicalAncestorWidgetClass → Type
-
Describes the RenderObjectWidget that is typically used to set up the
ParentData that applyParentData will write to.
no setteroverride
- debugTypicalAncestorWidgetDescription → String
-
Describes the RenderObjectWidget that is typically used to set up the
ParentData that applyParentData will write to.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
The child's height.
finalinherited
- id → Object
-
指定唯一标识符,修改标识符会导致 Element 实例销毁、重建,
如果出现相同的标识符,那么会覆盖上一个 Widget 实例
final
- index → int
-
显示权重,如果 index < 0,将不会进行绘制。
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- left → double?
-
The distance that the child's left edge is inset from the left of the stack.
finalinherited
- right → double?
-
The distance that the child's right edge is inset from the right of the stack.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- top → double?
-
The distance that the child's top edge is inset from the top of the stack.
finalinherited
- width → double?
-
The child's width.
finalinherited
Methods
-
applyParentData(
RenderObject renderObject) → void -
Write the data from this widget into the given render object's parent data.
override
-
createElement(
) → ParentDataElement< StackParentData> -
Inflates this configuration to a concrete instance.
override
-
debugCanApplyOutOfTurn(
) → bool -
Whether the ParentDataElement.applyWidgetOutOfTurn method is allowed
with this widget.
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.
override
-
debugIsValidRenderObject(
RenderObject renderObject) → bool -
Checks if this widget can apply its parent data to the provided
renderObject.inherited -
noScrollbarBehavior(
BuildContext context, {Key? key, bool? overscroll, bool enabled = true}) → Widget -
Available on Widget, provided by the FlutterWidgetExt extension
不使用祖先提供的默认滚动条,当使用自定义滚动条时请添加此扩展方法,防止与祖先提供的默认滚动条重叠 -
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