AnimatedStatusButton class
可关注公众号:我的大前端生涯 获取最新技术分享 可关注网易云课堂:https://study.163.com/instructor/1021406098.htm 可关注博客:https://blog.csdn.net/zl18603543572 头条|西瓜视频: https://www.toutiao.com/c/user/token/MS4wLjABAAAAYMrKikomuQJ4d-cPaeBqtAK2cQY697Pv9xIyyDhtwIM/
5.8 lib/demo/animated_button_statue.dart 切换样式的按钮
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AnimatedStatusButton
Constructors
- AnimatedStatusButton.new({Key? key, double height = 44.0, double width = 200.0, double borderRaidus = 22.0, String buttonText = '', Color textNormalCcolor = Colors.white, Color borderNormalColor = Colors.deepOrange, Color backgroundNormalColor = Colors.deepOrange, Color backgroundSelectColor = const Color(0xffff62b2), Color borderSelectColor = const Color(0xffff62b2), Color backgroundHightColor = Colors.grey, Color textHightCcolor = Colors.white, int milliseconds = 1000, bool isUseSelect = true, AnimatedStatusController? animatedStatusController, Function? clickCallback})
Properties
- animatedStatusController → AnimatedStatusController?
-
按钮控制器
final
- backgroundHightColor → Color
-
按下的背景高亮颜色
final
- backgroundNormalColor → Color
-
final
- backgroundSelectColor → Color
-
按下时的背景颜色
final
- borderNormalColor → Color
-
默认时显示的颜色
final
- borderRaidus → double
-
圆角大小
final
- borderSelectColor → Color
-
选中状态下的边框颜色
final
-
按钮上的文字
final
- clickCallback → Function?
-
按钮点击事件回调
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
按钮的宽度与高度
final
- isUseSelect → bool
-
为true时 触发点击事件后 会更新状态为
选择状态
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- milliseconds → int
-
动画交互时间
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textHightCcolor → Color
-
按下的文字的高亮颜色
final
- textNormalCcolor → Color
-
默认普通状态下的文字颜色
final
- width → double
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _AnimatedButtonState -
Creates the mutable state for this widget at a given location in the tree.
override
-
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, 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