Fluent2Flyout class
Fluent 2's Popover surface (the Flyout of Fluent's desktop libraries,
so named beside the fields' anchored listbox holder), drawn in place: child in body1 on
the appearance's face, 4 corners, the size's room round it, shadow16;
with arrowAt its arrow on the edge facing the control (arrowUp: the
popover hangs under it), its centre arrowAt from the start. Open one
anchored to a control with show. Content that teaches a control is a
Fluent2TeachingPopover.
Fluent2Flyout(child: Text('Shared with 4 people'))
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- Fluent2Flyout
Constructors
- Fluent2Flyout({required Widget child, Fluent2FlyoutAppearance appearance = Fluent2FlyoutAppearance.neutral, Fluent2FlyoutSize size = Fluent2FlyoutSize.medium, double? arrowAt, bool arrowUp = true, double minWidth = 0, double maxWidth = 360, double radius = Fluent2Radius.medium, Key? key})
-
A flyout anchored to
child(Fluent's Popover).const
Properties
- appearance → Fluent2FlyoutAppearance
-
Fluent's
appearance: the neutral, brand or inverted surface.final - arrowAt → double?
-
The arrow's centre from the popover's start edge; null draws none.
final
- arrowUp → bool
-
The arrow on the top edge (the popover under its control); false
puts it at the foot.
final
- child → Widget
-
The anchor the flyout opens from.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxWidth → double
-
The widest the flyout stands.
final
- minWidth → double
-
The narrowest the flyout stands.
final
- radius → double
-
Its corners: Fluent's 4 (a teaching popover's 8).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → Fluent2FlyoutSize
-
Fluent's
size: the room round its content.final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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.
override
-
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, int wrapWidth = 65}) → 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
Static Methods
-
show<
T> (BuildContext context, {required WidgetBuilder builder, Fluent2FlyoutAppearance appearance = Fluent2FlyoutAppearance.neutral, Fluent2FlyoutSize size = Fluent2FlyoutSize.medium, bool withArrow = true, bool preferBelow = false, double minWidth = 0, double maxWidth = 360, String? label}) → Future< T?> -
Opens
builder's content in a popover anchored to the controlcontextbelongs to (a Builder round it): above it by default (Fluent'sabove, centred), under it when there is no room, its arrow at the control unlesswithArrowis false; a tap outside or Escape dismisses it, completing with null. Focus is held inside it while open.