CNSheetGeometryProbe class

Invisible probe that lives at the root of a CNBottomSheet builder and publishes the sheet body's live global rect every frame.

Implementation: findRenderObject -> RenderBox.localToGlobal each frame via a self-rescheduling post-frame callback. Drag-to-dismiss updates the rect within one frame (post-frame schedules at end of layout, fires after paint — the rect published reflects the just- rendered frame; consumers via ValueNotifier see it on the next frame). On dispose, clears the published rect to null. Invisible widget that publishes its own global rect to CNTabBarRouteObserver.topModalRect each frame, then clears it on dispose. Use this manually inside any sheet/popup builder that CNBottomSheet doesn't wrap (e.g. Scaffold.showBottomSheet for persistent sheets) to opt that sheet into position-aware host-page CN-widget hiding.

Inheritance
Available extensions

Constructors

CNSheetGeometryProbe({Key? key, required Widget child})
Wraps child with a transparent per-frame geometry publisher.
const

Properties

child Widget
The sheet body. Untouched — the probe adds no UI, constraints, or gestures.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<CNSheetGeometryProbe>
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
liquidGlass({CNGlassEffect effect = CNGlassEffect.regular, CNGlassEffectShape shape = CNGlassEffectShape.capsule, double? cornerRadius, Color? tint, bool interactive = false}) Widget

Available on Widget, provided by the LiquidGlassExtension extension

Applies a Liquid Glass effect to this widget.
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