WheelOverlay class
An overlay shown on top of the wheel viewport, typically to highlight the currently selected row.
Usage:
// Outlined style (top/bottom lines) with horizontal inset
WheelOverlay.outlined(inset: 12);
// Filled rounded box style
WheelOverlay.filled(color: Colors.black12, cornerRadius: 8, inset: 16);
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- WheelOverlay
Constructors
- WheelOverlay({Key? key, WidgetBuilder? builder, double? extent, double? offset, required Widget child})
-
const
Properties
- builder → WidgetBuilder?
-
Optional builder that paints the overlay content.
If
null, only child is displayed.final - child → Widget
-
The underlying wheel view.
final
- extent → double?
-
Height of the overlay box. Usually matches the item extent.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- offset → double?
-
Vertical offset applied to the overlay (e.g. to account for headers).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
BuildContext context) → Widget -
Builds the wheel with the overlay stacked on top when builder is set.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
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
-
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
Static Methods
-
delegate(
{Color? color, BoxBorder? border, BorderRadiusGeometry? borderRadius, EdgeInsetsGeometry? margin}) → WidgetBuilder - Creates a default overlay box with optional border and background color.
-
filled(
{Color? color, double? cornerRadius, double? inset}) → WidgetBuilder - Creates an overlay with a rounded background and margin inset.
-
outlined(
{Color? borderColor, double? inset}) → WidgetBuilder - Creates an overlay with horizontal border lines.