MinFloatingBase class abstract

Base class for all Min floating components: Popover, Tooltip, Dropdown, Select, Sheet, Dialog…

Handles:

Subclasses only need to implement buildContent.

Inheritance
Implementers

Constructors

MinFloatingBase({Key? key, required Widget child, MinFloatingController? controller, bool? visible, bool enabled = true, bool openOnTap = true, MinUiAnchorSide? side, Duration? duration, Duration? reverseDuration, Curve? curve, bool? closeOnTapOutside, bool? closeOnEscape, bool? closeOnScroll, Color? barrierColor, bool? useDimmedBarrier, MinFloatingAnimation animation = MinFloatingAnimation.slideAndFade, Object? groupId, bool constrainToViewport = true, EdgeInsets viewportPadding = const EdgeInsets.all(8)})
const

Properties

animation → MinFloatingAnimation
final
barrierColor → Color?
final
child → Widget
The anchor widget (trigger). Always visible.
final
closeOnEscape → bool?
final
closeOnScroll → bool?
final
closeOnTapOutside → bool?
final
constrainToViewport → bool
Constrains floating content to the visible viewport.
final
controller → MinFloatingController?
External controller. If null, an internal one is created.
final
curve → Curve?
final
duration → Duration?
final
enabled → bool
If false, tapping the trigger does nothing.
final
groupId → Object?
TapRegion group id. Defaults to the State instance.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
openOnTap → bool
Open the floating element when the trigger is tapped.
final
reverseDuration → Duration?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
side → MinUiAnchorSide?
final
useDimmedBarrier → bool?
final
viewportPadding → EdgeInsets
Safe margin from screen edges when constrainToViewport is enabled.
final
visible → bool?
Controlled visibility (uncontrolled if null).
final

Methods

buildContent(BuildContext context, MinFloatingController controller) → Widget
Override in subclasses to build the floating panel content.
createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<MinFloatingBase>
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, 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
wrapOverlay(BuildContext anchorContext, Widget overlayChild) → Widget
Lets subclasses wrap overlay content with inherited dependencies captured from the anchor subtree (for example, a custom theme).

Operators

operator ==(Object other) → bool
The equality operator.
inherited