ControlButtonsAltComponentOptions class

ControlButtonsAltComponentOptions - Configures settings for the ControlButtonsAltComponent.

Example Usage:

ControlButtonsAltComponentOptions(
  buttons: [
    ControlButton(
      name: 'Start',
      icon: Icons.play_arrow,
      onPress: () => print('Play button pressed'),
      defaultBackgroundColor: Colors.black,
      pressedBackgroundColor: Colors.green,
    ),
    ControlButton(
      name: 'Stop',
      icon: Icons.stop,
      onPress: () => print('Stop button pressed'),
      defaultBackgroundColor: Colors.black,
      pressedBackgroundColor: Colors.red,
    ),
  ],
  position: 'center',
  location: 'bottom',
  direction: 'horizontal',
  buttonsContainerStyle: BoxDecoration(
    color: Colors.white,
    borderRadius: BorderRadius.circular(8),
  ),
  showAspect: true,
);

Constructors

ControlButtonsAltComponentOptions({required List<AltButton> buttons, String position = 'left', String location = 'top', String direction = 'horizontal', BoxDecoration? buttonsContainerStyle, Widget? alternateIconComponent, Widget? iconComponent, bool showAspect = true})

Properties

alternateIconComponent Widget?
A custom widget to display in place of the default icon component when the button is active.
final
buttons List<AltButton>
An array of button configurations to render within the component.
final
buttonsContainerStyle BoxDecoration?
Additional styling for the container holding the buttons.
final
direction String
Determines the layout direction of the buttons. Options: 'horizontal', 'vertical'.
final
hashCode int
The hash code for this object.
no setterinherited
iconComponent Widget?
A custom widget to display in place of the default icon component when the button is inactive.
final
location String
Specifies the vertical alignment of the buttons within the container. Options: 'top', 'bottom', 'center'.
final
position String
Specifies the horizontal alignment of the buttons within the container. Options: 'left', 'right', 'center'.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showAspect bool
Controls the visibility of the widget.
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