GlassPopover constructor

const GlassPopover({
  1. Key? key,
  2. required Widget child,
  3. required WidgetBuilder popoverBuilder,
  4. GlassPopoverController? controller,
  5. bool tapToToggle = true,
  6. GlassPopoverDirection direction = GlassPopoverDirection.below,
  7. Alignment alignment = Alignment.center,
  8. double gap = 8,
  9. double? width,
  10. EdgeInsetsGeometry padding = const EdgeInsets.all(14),
  11. double radius = 22,
  12. ValueChanged<bool>? onOpenChanged,
})

Springs a card built by popoverBuilder out of child.

Implementation

const GlassPopover({
  super.key,
  required this.child,
  required this.popoverBuilder,
  this.controller,
  this.tapToToggle = true,
  this.direction = GlassPopoverDirection.below,
  this.alignment = Alignment.center,
  this.gap = 8,
  this.width,
  this.padding = const EdgeInsets.all(14),
  this.radius = 22,
  this.onOpenChanged,
});