Fluent2ShellAction class

The app-level act beside the tabs, as Fluent 2 draws it: the floating action button over the tab bar's end on a phone (extended with its label), and the primary button under the nav pane's head at desktop width.

Fluent2ShellAction(icon: Fluent2Icons.edit, label: 'New message', accent: true, onPressed: (context) => Navigator.of(context).pushNamed('/compose'))
Inheritance

Constructors

Fluent2ShellAction({required IconData icon, required void onPressed(BuildContext context), String? label, bool accent = false, Key? key})
The act: icon, label when extended, onPressed with the context.

Properties

accent → bool
Whether the act is the app's standing invitation, drawn in the system's accent rather than its quieter default.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
icon → IconData
The glyph the act wears.
finalinherited
key → Key?
The walkthrough key of the declared step the act performs, set on the act's hit target.
finalinherited
label → String?
What the act does, announced for an icon-only control; a system may also print it (an extended action). Null announces nothing beyond the system's default.
finalinherited
onPressed → void Function(BuildContext context)
The act: the declared step's write and the route it lands on, run with a context under the router.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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