Airoll class
Airoll is a customised PopupMenuButton that accepts its children in the list on TabItem.
- Inheritance
Constructors
-
Airoll({Key? key, required Widget child, required List<
TabItem> ? children, bool isParent = true, bool actOnHover = true, bool isFloating = true, Clip clipBehavior = Clip.none, EdgeInsetsGeometry? padding, Color? color, BoxConstraints? constraints, double? elevation, bool? enableFeedback, bool enabled = true, Widget? icon, double? iconSize, TabItem? initialValue, void onCanceled()?, void onOpened()?, PopupMenuPosition? position, Color? shadowColor, ShapeBorder? shape, double? splashRadius, Color? surfaceTintColor, String? tooltip, bool showLeading = false, bool showTrailing = false}) -
const
Properties
- actOnHover → bool
-
Default value false, when false PopupMenuButton acts on click
final
- child → Widget
-
child represents the widget on the PopupMenuButton may it be Text or Icon
onclick of which PopupMenuButton's children will be shown.
final
-
children
→ List<
TabItem> ? -
List of TabItem that will be children of PopupMenuButton current Airoll.
final
- clipBehavior → Clip
-
The content will be clipped (or not) according to this option.
final
- color → Color?
-
If provided, the background color used for the menu.
final
- constraints → BoxConstraints?
-
Optional size constraints for the menu.
final
- elevation → double?
-
The z-coordinate at which to place the menu when open. This controls the size of the shadow below the menu.
final
- enabled → bool
-
Whether this popup menu button is interactive.
final
- enableFeedback → bool?
-
Whether detected gestures should provide acoustic and/or haptic feedback.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget?
-
If provided, the icon is used for this button and the button will behave like an IconButton.
final
- iconSize → double?
-
If provided, the size of the Icon.
final
- initialValue → TabItem?
-
The value of the menu item, if any, that should be highlighted when the menu opens.
final
- isFloating → bool
-
Default value true.
final
- isParent → bool
-
Deafult value true, different value used for internal working of the widget.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onCanceled → void Function()?
-
Called when the user dismisses the popup menu without selecting an item.
final
- onOpened → void Function()?
-
Called when the popup menu is shown.
final
- padding → EdgeInsetsGeometry?
-
Matches IconButton's 8 dps padding by default. In some cases, notably where this button appears as the trailing element of a list item, it's useful to be able to set the padding to zero.
final
- position → PopupMenuPosition?
-
Whether the popup menu is positioned over or under the popup menu button.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadowColor → Color?
-
The color used to paint the shadow below the menu.
final
- shape → ShapeBorder?
-
If provided, the shape used for the menu.
final
- showLeading → bool
-
When true will use TabItem's
selectedLeading
andunSelectedLeading
to show the leading widget in the Airoll item.final - showTrailing → bool
-
When true will use TabItem's
trailing
to show the trailing widget in the Airoll item.final - splashRadius → double?
-
The splash radius.
final
- surfaceTintColor → Color?
-
The color used as an overlay on color to indicate elevation.
final
- tooltip → String?
-
Text that describes the action that will occur when the button is pressed.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< Airoll> -
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}) → 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