GlassFullScreenCover class

A full-viewport modal container providing 1:1 parity with SwiftUI's .fullScreenCover().

Features:

  • Fills the entire screen/viewport edge-to-edge.
  • Curve-animated vertical slide-up transition from the bottom edge.
  • Interactive swipe-to-dismiss gesture with velocity threshold and elastic resistance.
  • Top corners round adaptively during downward drag mirroring iOS card sheet behavior.
  • Integrated GlassFullScreenCoverBar with circular close button and drag handle.
Inheritance
Available extensions

Constructors

GlassFullScreenCover({Key? key, required Widget child, Widget? topBar, Widget? title, Widget? leading, Widget? trailing, bool showCloseButton = true, GlassFullScreenCoverClosePosition closeButtonPosition = GlassFullScreenCoverClosePosition.trailing, String? closeButtonLabel, VoidCallback? onDismiss, bool enableSwipeToDismiss = true, double dismissThreshold = 140.0, double velocityThreshold = 700.0, double cornerRadius = 44.0, Color? backgroundColor, LiquidGlassSettings? settings, GlassQuality? quality, bool enableHaptics = true})
Creates a GlassFullScreenCover.
const

Properties

backgroundColor → Color?
Background color of the cover surface.
final
child → Widget
Primary content widget displayed inside the full-screen cover.
final
closeButtonLabel → String?
Optional text label for the close button (e.g. "Done").
final
closeButtonPosition → GlassFullScreenCoverClosePosition
Position of the close button.
final
cornerRadius → double
Maximum top corner radius applied dynamically as the sheet is pulled down.
final
dismissThreshold → double
Minimum vertical displacement in pixels required to trigger dismissal on release.
final
enableHaptics → bool
Whether to fire tactile haptic clicks when crossing the dismissal threshold.
final
enableSwipeToDismiss → bool
Whether dragging downward interactively pulls down and dismisses the cover.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading → Widget?
Leading accessory widget for the default top bar.
final
onDismiss → VoidCallback?
Callback executed when the cover is dismissed via gesture or close button.
final
quality → GlassQuality?
Rendering quality tier.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
settings → LiquidGlassSettings?
Liquid glass settings.
final
showCloseButton → bool
Whether to show the standard close button if building the default top bar.
final
title → Widget?
Title displayed in the default top bar.
final
topBar → Widget?
Custom top bar. If null and title or showCloseButton is provided, a default GlassFullScreenCoverBar is built automatically.
final
trailing → Widget?
Trailing accessory widget for the default top bar.
final
velocityThreshold → double
Minimum fling velocity in pixels/second required to dismiss regardless of position.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<GlassFullScreenCover>
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
glassContextMenu({Key? key, required List<Widget> actions, WidgetBuilder? previewBuilder, bool enabled = true, bool enableHaptics = true, double borderRadius = 32.0, double? previewBorderRadius, double rowBorderRadius = 16.0, BorderRadius? rowCorners, Color? originSlotColor, Color? backgroundColor, LiquidGlassSettings? settings, GlassQuality? quality, double backdropBlur = 0.0, Color? barrierColor, double menuWidth = 250.0, VoidCallback? onOpened, VoidCallback? onDismissed, Duration longPressDuration = const Duration(milliseconds: 700)}) → Widget

Available on Widget, provided by the GlassContextMenuExtension extension

Wraps this widget in a GlassContextMenu displaying actions on long-press or right-click.
glassFullScreenCover({required bool isPresented, VoidCallback? onDismiss, required WidgetBuilder content, bool enableSwipeToDismiss = true, double dismissThreshold = 140.0, LiquidGlassSettings? settings, GlassQuality? quality}) → Widget

Available on Widget, provided by the GlassFullScreenCoverExtension extension

Presents a full-viewport modal cover whenever isPresented is true.

Available on Widget, provided by the GlassNavigationTitleExtension extension

Annotates this widget with a navigation title that drives enclosing or descendant GlassAppBar / GlassAppBar.pinned bars (when their explicit title is null) as well as header accessibility semantics.
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