RepaintBoundaryGallerySource class
A concrete GallerySource backed by a RepaintBoundary reachable via
boundaryKey. Suitable for any widget; the chat-side
ChatMessageBubbleImageSource (Phase 13 / chat integration) wraps its
image in a RepaintBoundary keyed by this implementation.
- Implemented types
Constructors
-
RepaintBoundaryGallerySource(GlobalKey<
State< boundaryKey, {BorderRadius borderRadius = BorderRadius.zero})StatefulWidget> > -
Creates the source over
boundaryKey.
Properties
- borderRadius → BorderRadius
-
Corner shape applied outside the captured image.
final
-
boundaryKey
→ GlobalKey<
State< StatefulWidget> > -
Key of the RepaintBoundary that is measured and captured.
final
- currentRect → Rect?
-
Bubble rect in screen (logical) coordinates. Null if scrolled off-screen.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
snapshot(
) → Future< Image?> -
Current image pixels, cover-fitted to currentRect by the flight.
The caller owns the image; null means no pixels are available.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited