BigGhostButton class
页面中和主题色相关的幽灵按钮 可以支持自定义背景颜色、文字颜色等
和BigMainButton相比,该按钮的背景色仅仅是其背景色的withOpacity(0.1) 并且该按钮不支持不可用状态
按钮是圆角矩形的形状,不支持改变形状。
BrnBigGhostButtonWidget( title: '提交', )
其他按钮如下:
BrnBigMainButton
, 大主色调按钮BrnBigOutlineButton
, 大边框按钮
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- BigGhostButton
Constructors
- BigGhostButton({Key? key, String? title, Color? titleColor, Color? bgColor, VoidCallback? onTap, double? width, ButtonConfig? themeData})
-
const
Properties
- bgColor → Color?
-
按钮背景颜色
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onTap → VoidCallback?
-
点击回调
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- themeData → ButtonConfig?
-
final
- title → String?
-
按钮文案,默认'确认'
final
- titleColor → Color?
-
文案颜色
final
- width → double?
-
默认父布局可用空间
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