widgets library
Classes
- BoxSize
-
Stores the configuration for a SizedBox without specifying a
child. - ClippedDecoration
- A variation of DecoratedBox that allows specifying a clipBehavior.
- ClipRef
- Interface used in the RefClipCallback.
- PaintRef
- An interface used by RefPaint.paint and RefPaint.semanticsBuilder.
- RefAlign
- A variant of Align that evaluates based on a RefComputer<AlignmentGeometry>.
- RefAspectRatio
- A variant of AspectRatio that evaluates based on a RefComputer<double>.
- RefBuilder
- A variation of a Builder whose callback can use ref to watch ValueListenable objects.
- RefClip
- Clips the child based on a RefClipCallback.
- RefConstraints
- A variant of ConstrainedBox that evaluates based on a RefComputer<BoxConstraints>.
- RefDecoration
- A variant of DecoratedBox that evaluates based on a RefComputer<Decoration>.
- RefLayout
-
RefLayoutis designed to display a finite number of children. To show a widget List of arbitrary length, consider using Wrap, GridView, CustomScrollView, orTableViewfrom the two_dimensional_scrollables package. - RefLayoutDelegate
- A handle for laying out and positioning a child of a RefLayout.
-
RefLayoutState<
T extends RefLayout> - The logic and state for a RefLayout widget.
- RefOpacity
- A variant of Opacity that evaluates based on a RefComputer<double>.
- RefPadding
- A variant of Padding that evaluates based on a RefComputer<EdgeInsetsGeometry>.
- RefPaint
- A variation of CustomPaint that uses a PaintRef to interface with ValueListenable objects.
-
RefParentData<
Data extends ParentData> - When using a ParentDataWidget, the widget contains fields that translate to ParentData properties, and its corresponding ParentDataElement updates the render object using the widget instance each time it rebuilds.
- RefPointer
- A variant of IgnorePointer or AbsorbPointer that evaluates based on a RefComputer<bool>.
- RefPosition
- A variant of Positioned where the layout is determined by a RefComputer callback.
- RefShaderMask
- A variant of ShaderMask that evaluates based on a RefShaderCallback.
- RefSizedBox
- A variant of SizedBox that evaluates based on a RefComputer<BoxSize>.
- RefTransform
- A variant of Transform that evaluates based on a RefComputer<Matrix4>.
- RefWidget
-
A variation of a StatelessWidget whose
buildmethod can use ref to watch ValueListenable objects. - RenderClippedDecoration
- Paints a Decoration.
- RenderRefAlign
- Positions its child using an Alignment.
- ShaderRef
- Interface used in the RefShaderCallback.
- StatefulRefWidget
- A variation of a StatefulWidget whose State.build method can use ref to watch ValueListenable objects.
Extension Types
- LayoutRef
- Provides layout utilities and context for RefLayout children during RefLayoutState.performLayout.
Typedefs
-
RefClipCallback<
T> = T Function(ClipRef ref) - Signature for the callback passed to RefClip.
- RefPaintCallback = void Function(PaintRef ref)
- Signature for the callback within a RefPaint widget that paints a UI element using a PaintRef.
-
RefPaintSemanticsBuilder
= List<
CustomPainterSemantics> Function(PaintRef ref) - Builds semantics information describing the picture drawn by a RefPaintCallback. Each CustomPainterSemantics in the returned list is converted into a SemanticsNode by copying its properties.
- RefShaderCallback = Shader Function(ShaderRef ref)
- Signature for the callback passed to RefShaderMask.