ElLink class

Inheritance
Available extensions

Constructors

ElLink({Key? key, required String href, required dynamic child, Color? color, Color? activeColor, ElLinkDecoration? decoration, MouseCursor cursor = SystemMouseCursors.click, LinkTarget target = LinkTarget.blank})
超链接小部件,链接跳转基于 url_launcher 第三方库,当鼠标悬停时会在左下角显示链接地址。
const

Properties

activeColor Color?
激活的超链接文本颜色
final
child → dynamic
超链接子组件,如果不是 Widget 类型,则渲染默认样式文本
final
color Color?
默认的超链接文本颜色
final
cursor MouseCursor
自定义光标样式,默认点击
final
decoration ElLinkDecoration?
超链接下划线显示逻辑
final
hashCode int
The hash code for this object.
no setterinherited
href String
超链接地址
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
target LinkTarget
打开链接的目标位置,默认 blank 新窗口打开
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 Properties

defaultActiveColorBuilder ElColorBuilder
超链接默认激活颜色构建
getter/setter pair
defaultColorBuilder ElColorBuilder
超链接默认颜色构建
getter/setter pair