SilEmptyButton class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- SilEmptyButton
- Implementers
Constructors
- SilEmptyButton({double? radius, void onTapFunc()?, void onLongPress()?, double? width, double? height, double? borderWidth, Color? borderColor, BorderRadiusGeometry? borderRadius, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, AlignmentGeometry? alignment, Widget? child, Color? backgroundColor, bool useConstrained = false, HitTestBehavior? behavior = HitTestBehavior.deferToChild, Key? key})
-
const
Properties
- alignment → AlignmentGeometry?
-
对齐方式
final
- backgroundColor → Color?
-
背景颜色
final
- behavior → HitTestBehavior?
-
点击区域
final
- borderColor → Color?
-
边框颜色
final
- borderRadius → BorderRadiusGeometry?
-
自定义圆角
final
- borderWidth → double?
-
边框宽度
final
- child → Widget?
-
child
final
- decoration → BoxDecoration
-
装饰
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
高度
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- margin → EdgeInsetsGeometry?
-
外间距
final
- onLongPress → void Function()?
-
长按
final
- onTapFunc → void Function()?
-
点击回调函数
final
- padding → EdgeInsetsGeometry?
-
内间距
final
- radius → double?
-
圆角弧度(装饰用,子组件切圆角,需要自己处理)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- useConstrained → bool
-
是否使用上级的约束,默认不使用
final
- width → double?
-
宽度
final
Methods
-
bgWidget(
{Widget? child}) → Widget - 按钮背景
-
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