ZdsPopOverIconButton class

An icon button with a popover.

ZdsPopOverIconButton(
  icon: const Icon(ZdsIcons.info),
  popOverBuilder: (context) {
    return const Text('Popover text!');
  },
),
Inheritance
Available Extensions

Constructors

ZdsPopOverIconButton({required Icon icon, required WidgetBuilder popOverBuilder, Key? key, void onDismissed(dynamic)?, double iconSize = 24.0, VisualDensity? visualDensity, EdgeInsetsGeometry padding = const EdgeInsets.all(8), AlignmentGeometry alignment = Alignment.center, double? splashRadius, Color? color, Color? focusColor, Color? hoverColor, Color? highlightColor, Color? splashColor, Color? disabledColor, MouseCursor mouseCursor = SystemMouseCursors.click, FocusNode? focusNode, bool autofocus = false, bool enableFeedback = true, BoxConstraints? buttonConstraints, BoxConstraints? popOverConstraints, Color? backgroundColor, double contentDyOffset = 0.0, String? barrierLabel})
Constructs an icon button with a popover.
const

Properties

alignment AlignmentGeometry
Defines the of the IconButton.
final
autofocus bool
Defines the autofocus of the IconButton.
final
backgroundColor Color?
Background color of the popover.
final
barrierLabel String?
Semantic label used for a dismissible barrier.
final
buttonConstraints BoxConstraints?
Defines the buttonConstraints of the IconButton.
final
color Color?
Defines the color of the IconButton.
final
contentDyOffset double
Defines the vertical offset of the popover from the icon.
final
disabledColor Color?
Defines the disabledColor of the IconButton.
final
enableFeedback bool
Defines the enableFeedback of the IconButton.
final
focusColor Color?
Defines the focusColor of the IconButton.
final
focusNode FocusNode?
Defines the focusNode of the IconButton.
final
hashCode int
The hash code for this object.
no setterinherited
highlightColor Color?
Defines the highlightColor of the IconButton.
final
hoverColor Color?
Defines the hoverColor of the IconButton.
final
icon Icon
Icon for the icon button.
final
iconSize double
Size of the IconButton.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mouseCursor MouseCursor
Defines the mouseCursor of the IconButton.
final
onDismissed → (void Function(dynamic)?)
Callback function called when popover is dismissed.
final
padding EdgeInsetsGeometry
Defines the inset padding of the IconButton.
final
popOverBuilder WidgetBuilder
A WidgetBuilder that builds the content of the popover.
final
popOverConstraints BoxConstraints?
Defines the constraints for the child of the popover.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
splashColor Color?
Defines the splashColor of the IconButton.
final
splashRadius double?
Defines the splashRadius of the IconButton.
final
visualDensity VisualDensity?
Defines the visual density of the IconButton.
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}) 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