ButtonNavigationItem class
A ButtonNavigationItem represents one button in the menu bar. Should be inserted in ButtonNavigationBar.children.
Constructors
Properties
-
children
→ List<
Widget> ? -
children are the expanding widgets in a ButtonNavigationItem.expandable
final
- collapseButton → ButtonNavigationItem?
-
collapseButton allows to customize the button which collapses the expanded buttons again. onPressed of a widget is always overwritten when using it here. Only for ButtonNavigationItem.expandable.
final
- color → Color?
-
color sets the color of the button. Buttons in the same menu can have different colors.
final
- expandableSpacing → double
-
expandableSpacing can be used to define the spacing between the expandable buttons. Only for ButtonNavigationItem.expandable.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
height and width set the dimensions of the button. If left emtpy, height is 48 and with 72.
final
- icon → Icon?
-
icon displays a passed Icon of the label text.
final
- label → String?
-
The label is the text displayed on the button. If empty, no text is displayed on the button.
final
- onPressed → VoidCallback?
-
onPressed sets the action of the button when pressed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- verticalOffset → double
-
verticalOffset can be used to define the spacing between the ButtonNavigationItem and the first expandable Item. Only for ButtonNavigationItem.expandable.
final
- width → double
-
height and width set the dimensions of the button. If left emtpy, height is 48 and with 72.
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