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({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})
Properties
- active → bool
-
final
- activeColor → Color?
-
final
- alternateIcon → IconData?
-
final
-
backgroundColor
→ Map<
String, Color> ? -
final
- color → Color?
-
final
- customComponent → Widget?
-
final
- disabled → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData?
-
final
- inActiveColor → Color?
-
final
- name → String?
-
final
- onPress → VoidCallback?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- show → bool
-
final
- size → int?
-
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