utils/shims/dart_ui_real
library
Classes
-
AccessibilityFeatures
-
Additional accessibility features that may be enabled by the platform.
-
AssetManager
-
This class downloads assets over the network.
-
BackdropFilterEngineLayer
-
An opaque handle to a backdrop filter engine layer.
-
BrowserDetection
-
The core Browser Detection functionality from the Flutter web engine.
-
BrowserPlatformLocation
-
Delegates to real browser APIs to provide platform location functionality.
-
CallbackHandle
-
A wrapper for a raw callback handle.
-
Canvas
-
An interface for recording graphical operations.
-
ChannelBuffers
-
The buffering and dispatch mechanism for messages sent by plugins
on the engine side to their corresponding plugin code on the
framework side.
-
ClipPathEngineLayer
-
An opaque handle to a clip path engine layer.
-
ClipRectEngineLayer
-
An opaque handle to a clip rect engine layer.
-
ClipRRectEngineLayer
-
An opaque handle to a clip rounded rect engine layer.
-
ClipRSuperellipseEngineLayer
-
An opaque handle to a clip rounded superellipse engine layer.
-
Codec
-
A handle to an image codec.
-
Color
-
An immutable color value in ARGB format.
-
ColorFilter
-
A description of a color filter to apply when drawing a shape or compositing
a layer with a particular Paint. A color filter is a function that takes
two colors, and outputs one color. When applied during compositing, it is
independently applied to each pixel of the layer being drawn before the
entire layer is merged with the destination.
-
ColorFilterEngineLayer
-
An opaque handle to a color filter engine layer.
-
DartPluginRegistrant
-
Helper functions for Dart Plugin Registrants.
-
Display
-
A configurable display that a FlutterView renders on.
-
DisplayFeature
-
Area of the display that may be obstructed by a hardware feature.
-
EngineLayer
-
A handle for the framework to hold and retain an engine layer across frames.
-
FlutterView
-
A view into which a Flutter Scene is drawn.
-
FlutterViewManagerProxy
-
This class exposes web-only attributes for the registered views in a multi-view app.
-
FontFeature
-
A feature tag and value that affect the selection of glyphs in a font.
-
FontVariation
-
An axis tag and value that can be used to customize variable fonts.
-
FontWeight
-
The thickness of the glyphs used to draw the text.
-
FragmentProgram
-
An instance of FragmentProgram creates Shader objects (as used by
Paint.shader).
-
FragmentShader
-
A Shader generated from a FragmentProgram.
-
FrameData
-
Additional data available on each flutter frame.
-
FrameInfo
-
Information for a single frame of an animation.
-
FrameTiming
-
Time-related performance metrics of a frame.
-
GestureSettings
-
Platform specific configuration for gesture behavior, such as touch slop.
-
GlyphInfo
-
The measurements of a character (or a sequence of visually connected
characters) within a paragraph.
-
Gradient
-
A shader (as used by Paint.shader) that renders a color gradient.
-
HashUrlStrategy
-
This is an implementation of UrlStrategy that uses the browser URL's
hash fragments
to represent its state.
-
Image
-
Opaque handle to raw decoded image data (pixels).
-
ImageDescriptor
-
A descriptor of data that can be turned into an Image via a Codec.
-
ImageFilter
-
A filter operation to apply to a raster image.
-
ImageFilterEngineLayer
-
An opaque handle to an image filter engine layer.
-
ImageShader
-
A shader (as used by Paint.shader) that tiles an image.
-
ImmutableBuffer
-
A handle to a read-only byte buffer that is managed by the engine.
-
IsolateNameServer
-
Static methods to allow for simple sharing of SendPorts across Isolates.
-
KeyData
-
Information about a key event.
-
LineMetrics
-
LineMetrics stores the measurements and statistics of a single line in the
paragraph.
-
Locale
-
An identifier used to select a user's language and formatting preferences.
-
LocaleStringAttribute
-
A string attribute that causes the assistive technologies, e.g. VoiceOver,
to treat string as a certain language.
-
MaskFilter
-
A mask filter to apply to shapes as they are painted. A mask filter is a
function that takes a bitmap of color pixels, and returns another bitmap of
color pixels.
-
Offset
-
An immutable 2D floating-point offset.
-
OffsetBase
-
Base class for Size and Offset, which are both ways to describe
a distance as a two-dimensional axis-aligned vector.
-
OffsetEngineLayer
-
An opaque handle to an offset engine layer.
-
OpacityEngineLayer
-
An opaque handle to an opacity engine layer.
-
Paint
-
A description of the style to use when drawing on a Canvas.
-
Paragraph
-
A paragraph of text.
-
ParagraphBuilder
-
Builds a Paragraph containing text with the given styling information.
-
ParagraphConstraints
-
Layout constraints for Paragraph objects.
-
ParagraphStyle
-
An opaque object that determines the configuration used by
ParagraphBuilder to position lines within a Paragraph of text.
-
Path
-
A complex, one-dimensional subset of a plane.
-
PathMetric
-
Utilities for measuring a Path and extracting sub-paths.
-
PathMetricIterator
-
Used by PathMetrics to track iteration from one segment of a path to the
next for measurement.
-
PathMetrics
-
An iterable collection of PathMetric objects describing a Path.
-
Picture
-
An object representing a sequence of recorded graphical operations.
-
PictureRecorder
-
Records a Picture containing a sequence of graphical operations.
-
PlatformDispatcher
-
Platform event dispatcher singleton.
-
PlatformLocation
-
Encapsulates all calls to DOM apis, which allows the UrlStrategy classes
to be platform agnostic and testable.
-
PlatformViewRegistry
-
A registry for factories that create platform views.
-
PluginUtilities
-
Functionality for Flutter plugin authors.
-
PointerData
-
Information about the state of a pointer.
-
PointerDataPacket
-
A sequence of reports about the state of pointers.
-
Radius
-
A radius for either circular or elliptical shapes.
-
Rect
-
An immutable, 2D, axis-aligned, floating-point rectangle whose coordinates
are relative to a given origin.
-
RootIsolateToken
-
A token that represents a root isolate.
-
RRect
-
An immutable rounded rectangle with the custom radii for all four corners.
-
RSTransform
-
A transform consisting of a translation, a rotation, and a uniform scale.
-
RSuperellipse
-
An immutable rounded superellipse.
-
Scene
-
An opaque object representing a composited scene.
-
SceneBuilder
-
Builds a Scene containing the given visuals.
-
SemanticsAction
-
The possible actions that can be conveyed from the operating system
accessibility APIs to a semantics node.
-
SemanticsActionEvent
-
An event to request a SemanticsAction of type to be performed on the
SemanticsNode identified by nodeId owned by the FlutterView identified
by viewId.
-
SemanticsFlag
-
A Boolean value that can be associated with a semantics node.
-
SemanticsUpdate
-
An opaque object representing a batch of semantics updates.
-
SemanticsUpdateBuilder
-
An object that creates SemanticsUpdate objects.
-
Shader
-
Base class for objects such as Gradient and ImageShader which
correspond to shaders as used by Paint.shader.
-
ShaderMaskEngineLayer
-
An opaque handle to a shader mask engine layer.
-
Shadow
-
A single shadow.
-
SingletonFlutterWindow
-
Deprecated. Will be removed in a future version of Flutter.
-
Size
-
Holds a 2D floating-point size.
-
SpellOutStringAttribute
-
A string attribute that causes the assistive technologies, e.g. VoiceOver,
to spell out the string character by character.
-
StringAttribute
-
An abstract interface for string attributes that affects how assistive
technologies, e.g. VoiceOver or TalkBack, treat the text.
-
StrutStyle
-
See also:
-
SystemColor
-
A color specified in the operating system UI color palette.
-
SystemColorPalette
-
A palette of system colors specified in the operating system for a given brightness.
-
Tangent
-
The geometric description of a tangent: the angle at a point.
-
TargetImageSize
-
A specification of the size to which an image should be decoded.
-
TextBox
-
A rectangle enclosing a run of text.
-
TextDecoration
-
A linear decoration to draw near the text.
-
TextHeightBehavior
-
Defines how to apply
TextStyle.height
over and under text.
-
TextPosition
-
A position in a string of text.
-
A range of characters in a string of text.
-
TextStyle
-
An opaque object that determines the size, position, and rendering of text.
-
TransformEngineLayer
-
An opaque handle to a transform engine layer.
-
UrlStrategy
-
Represents and reads route state from the browser's URL.
-
Vertices
-
A set of vertex data used by Canvas.drawVertices.
-
ViewConstraints
-
Immutable layout constraints for FlutterViews.
-
ViewFocusEvent
-
An event for the engine to communicate view focus changes to the app.
-
ViewPadding
-
A representation of distances for each of the four edges of a rectangle,
used to encode the view insets and padding that applications should place
around their user interface, as exposed by FlutterView.viewInsets and
FlutterView.padding. View insets and padding are preferably read via
MediaQuery.of.
Constants
-
keepToString
→ const pragma
-
Annotation to keep Object.toString overrides as-is instead of removing
them for size optimization purposes.
-
kTextHeightNone
→ const double
-
A
TextStyle.height
value that indicates the text span should take
the height defined by the font, which may not be exactly the height of
TextStyle.fontSize
.
Functions
-
bootstrapEngine({VoidCallback? registerPlugins, VoidCallback? runApp})
→ Future<void>
-
Bootstraps the Flutter Web engine and app.
-
clampDouble(double x, double min, double max)
→ double
-
Same as num.clamp but optimized for a non-null double.
-
createImageCodecFromUrl(Uri uri, {ImageCodecChunkCallback? chunkCallback})
→ Future<Codec>
-
Creates a ui.Codec for the image located at
uri
.
-
createImageFromImageBitmap(JSAny imageSource)
→ FutureOr<Image>
-
Creates a ui.Image from an ImageBitmap object.
-
createImageFromTextureSource(JSAny object, {required int width, required int height, bool transferOwnership = false})
→ FutureOr<Image>
-
Creates a ui.Image from a valid texture source (for example
HTMLImageElement | HTMLVideoElement | HTMLCanvasElement).
-
debugOverrideDevicePixelRatio(double? value)
→ void
-
Overrides the value of ui.FlutterView.devicePixelRatio in tests.
-
debugResetCustomUrlStrategy()
→ void
-
Resets everything to do with custom URL strategy.
-
decodeImageFromList(Uint8List list, ImageDecoderCallback callback)
→ void
-
Loads a single image frame from a byte array into an Image object.
-
decodeImageFromPixels(Uint8List pixels, int width, int height, PixelFormat format, ImageDecoderCallback callback, {int? rowBytes, int? targetWidth, int? targetHeight, bool allowUpscaling = true})
→ void
-
Convert an array of pixel values into an Image object.
-
instantiateImageCodec(Uint8List list, {int? targetWidth, int? targetHeight, bool allowUpscaling = true})
→ Future<Codec>
-
Instantiates an image Codec.
-
instantiateImageCodecFromBuffer(ImmutableBuffer buffer, {int? targetWidth, int? targetHeight, bool allowUpscaling = true})
→ Future<Codec>
-
Instantiates an image Codec.
-
instantiateImageCodecWithSize(ImmutableBuffer buffer, {TargetImageSizeCallback? getTargetSize})
→ Future<Codec>
-
Instantiates an image Codec.
-
lerpDouble(num? a, num? b, double t)
→ double?
-
Linearly interpolate between two numbers,
a
and b
, by an extrapolation
factor t
.
-
loadFontFromList(Uint8List list, {String? fontFamily})
→ Future<void>
-
Loads a font from a buffer and makes it available for rendering text.
-
preventCustomUrlStrategy()
→ void
-
From this point on, prevents setting a custom URL strategy.
-
runOnPlatformThread<R>(FutureOr<R> computation())
→ Future<R>
-
Runs
computation
on the platform thread and returns the result.
-
setPluginHandler(PlatformMessageCallback handler)
→ void
-
Sets the handler that forwards platform messages to web plugins.