FdcGridButton class
Standard action button that can be placed in a grid toolbar or status bar.
The API follows Flutter button conventions: when onPressed is null the button is disabled.
- Inheritance
-
- Object
- FdcGridItem
- FdcGridButton
Constructors
- FdcGridButton({String? id, bool visible = true, FdcGridItemPlacement placement = FdcGridItemPlacement.end, required IconData icon, String? label, String? tooltip, VoidCallback? onPressed})
-
Creates a FdcGridButton.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData
-
Optional icon shown with the item.
final
- id → String?
-
Optional stable identifier for locating or customizing this item.
finalinherited
- label → String?
-
Display label shown to the user.
final
- onPressed → VoidCallback?
-
Callback invoked when the item is activated.
final
- placement → FdcGridItemPlacement
-
Placement zone used by the host when arranging this item.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tooltip → String?
-
Tooltip shown for this grid toolbar button.
final
- visible → bool
-
Whether this item participates in the host toolbar or status bar.
finalinherited
Methods
-
buildItem(
BuildContext context) → Widget -
Builds the button using the item theme provided by its host bar.
override
-
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