BaseIconButton class

BaseIconButton use CupertinoButton by cupertino *** use cupertino = { forceUseMaterial: true } force use IconButton on cuperitno. use IconButton by material *** use material = { forceUseCupertino: true } force use CupertinoButton on material.

Inheritance

Constructors

BaseIconButton({Key baseKey, Key key, Widget icon, Color color, Color disabledColor, EdgeInsets padding = const EdgeInsets.all(8.0), VoidCallback onPressed, double minSize = 24.0, double pressedOpacity = 0.4, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(8.0)), double iconSize = 24.0, VisualDensity visualDensity, Alignment alignment = Alignment.center, Color focusColor, Color hoverColor, Color highlightColor, Color splashColor, FocusNode focusNode, bool autofocus = false, String tooltip, bool enableFeedback = true, Map<String, dynamic> cupertino, Map<String, dynamic> material})
const

Properties

alignment Alignment
IconButton.alignment
final
autofocus bool
IconButton.autofocus
final
borderRadius BorderRadius
CupertinoButton.borderRadius
final
color Color
CupertinoButton.color or IconButton.color
final
cupertino Map<String, dynamic>
final, inherited
disabledColor Color
CupertinoButton.disabledColor or IconButton.disabledColor
final
enableFeedback bool
IconButton.enableFeedback
final
focusColor Color
IconButton.focusColor
final
focusNode FocusNode
IconButton.focusNode
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
highlightColor Color
IconButton.highlightColor
final
hoverColor Color
IconButton.hoverColor
final
icon Widget
CupertinoButton or IconButton.icon
final
iconSize double
*** cupertino properties end *** *** material properties start *** IconButton.iconSize
final
key Key
*** general properties start ***
final
material Map<String, dynamic>
final, inherited
minSize double
*** general properties end *** *** cupertino properties start *** CupertinoButton.minSize
final
onPressed VoidCallback
CupertinoButton.onPressed or IconButton.onPressed
final
padding EdgeInsets
CupertinoButton.padding or IconButton.padding
final
pressedOpacity double
CupertinoButton.pressedOpacity
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
splashColor Color
IconButton.splashColor
final
tooltip String
IconButton.tooltip
final
visualDensity VisualDensity
IconButton.visualDensity
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget. [...]
inherited
buildBefore(BuildContext context) → void
build之前调用
inherited
buildByCupertino(BuildContext context) Widget
*** material properties end ***
override
buildByCupertinoBefore(BuildContext context) → void
buildByCupertino之前调用
inherited
buildByMaterial(BuildContext context) Widget
build on material mode
override
buildByMaterialBefore(BuildContext context) → void
buildByMaterial之前调用
inherited
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. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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
valueFromCupertino(String key, dynamic value) → dynamic
从cupertino获取key对应的值, 如果为null取value的值, 如果还是null则取material里的值
inherited
valueFromMap(Map<String, dynamic> map, String key, dynamic value) → dynamic
从cupertino获取key对应的值, 如果为null取value的值, 如果还是null则取material里的值
inherited
valueFromMaterial(String key, dynamic value) → dynamic
从material获取key对应的值, 如果为null取value的值, 如果还是null则取cupertino里的值
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
@nonVirtual, inherited