ButtonTouch class
ButtonTouch - Represents a control button with customizable style and behavior.
Example Usage:
ButtonTouch(
name: 'Play',
icon: Icons.play_arrow,
alternateIcon: Icons.pause,
onPress: () => print('Button pressed'),
active: true,
show: true,
backgroundColor: {
'default': Colors.blue,
'pressed': Colors.green,
},
);
Constructors
-
ButtonTouch.new({String? name, IconData? icon, IconData? alternateIcon, VoidCallback? onPress, Color? color = Colors.white, Color? activeColor, Color? inActiveColor, bool active = false, bool show = true, Widget? customComponent, bool disabled = false, Map<
String, Color> ? backgroundColor, int? size = 16, EdgeInsetsGeometry? padding, EdgeInsetsGeometry? margin, BoxDecoration? decoration, BoxConstraints? constraints, EdgeInsetsGeometry? contentPadding, MainAxisAlignment? contentMainAxisAlignment, CrossAxisAlignment? contentCrossAxisAlignment, double? contentGap, double? iconSize, TextStyle? textStyle, EdgeInsetsGeometry? labelPadding, EdgeInsetsGeometry? iconPadding, Widget? iconWidget, Widget? alternateIconWidget, ControlButtonsTouchButtonContentBuilder? contentBuilder, ControlButtonsTouchButtonBuilder? buttonBuilder, ControlButtonsTouchButtonIconBuilder? iconBuilder, ControlButtonsTouchButtonLabelBuilder? labelBuilder, String? semanticsLabel}) -
const
Properties
- active → bool
-
final
- activeColor → Color?
-
final
- alternateIcon → IconData?
-
final
- alternateIconWidget → Widget?
-
final
-
backgroundColor
→ Map<
String, Color> ? -
final
-
final
- color → Color?
-
final
- constraints → BoxConstraints?
-
final
- contentBuilder → ControlButtonsTouchButtonContentBuilder?
-
final
- contentCrossAxisAlignment → CrossAxisAlignment?
-
final
- contentGap → double?
-
final
- contentMainAxisAlignment → MainAxisAlignment?
-
final
- contentPadding → EdgeInsetsGeometry?
-
final
- customComponent → Widget?
-
final
- decoration → BoxDecoration?
-
final
- disabled → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData?
-
final
- iconBuilder → ControlButtonsTouchButtonIconBuilder?
-
final
- iconPadding → EdgeInsetsGeometry?
-
final
- iconSize → double?
-
final
- iconWidget → Widget?
-
final
- inActiveColor → Color?
-
final
- labelBuilder → ControlButtonsTouchButtonLabelBuilder?
-
final
- labelPadding → EdgeInsetsGeometry?
-
final
- margin → EdgeInsetsGeometry?
-
final
- name → String?
-
final
- onPress → VoidCallback?
-
final
- padding → EdgeInsetsGeometry?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticsLabel → String?
-
final
- show → bool
-
final
- size → int?
-
final
- textStyle → TextStyle?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited