ElRing class
- Inheritance
- Available extensions
Constructors
Properties
- border → Border?
-
此属性允许你绘制部分边框,但是请注意:你只能通过 width、color 属性统一定义边框颜色、宽度,
在 BorderSide 中定义 width、color 是无效的
final
- borderRadius → BorderRadius?
-
边框圆角,如果边框不相连,那么会忽略圆角
final
- child → Widget
-
final
- color → Color?
-
轮廓环颜色
final
- curve → Curve?
-
动画曲线
final
- duration → Duration?
-
Ring 是隐式动画小部件,修改任意属性会自动应用过渡动画
final
- gradient → Gradient?
-
填充渐变色
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- offset → double?
-
轮廓环距离子元素间隔,默认 0
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- show → bool
-
是否显示轮廓环,默认 true
final
- strokeAlign → double?
-
轮廓环绘制位置,默认向外进行延伸 BorderSide.strokeAlignOutside
final
- width → double?
-
轮廓环宽度,若 width == 0 时则不进行任何绘制
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
-
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
Static Methods
-
paddingOf(
BuildContext context) → EdgeInsets - 获取 ElRing 嵌入到 child 的内边距,防止内容被覆盖