CupertinoPickerDefaultSelectionOverlay class Null safety

A default selection overlay for CupertinoPickers.

It draws a gray rounded rectangle to match the picker visuals introduced in iOS 14.

This widget is typically only used in CupertinoPicker.selectionOverlay. In an iOS 14 multi-column picker, the selection overlay is a single rounded rectangle that spans the entire multi-column picker. To achieve the same effect using CupertinoPickerDefaultSelectionOverlay, the additional margin and corner radii on the left or the right side can be disabled by turning off capStartEdge and capEndEdge, so this selection overlay visually connects with selection overlays of adjoining CupertinoPickers (i.e., other "column"s).

See also:

Inheritance

Constructors

CupertinoPickerDefaultSelectionOverlay({Key? key, Color background = CupertinoColors.tertiarySystemFill, bool capStartEdge = true, bool capEndEdge = true})
Creates an iOS 14 style selection overlay that highlights the magnified area (or the currently selected item, depending on how you described it elsewhere) of a CupertinoPicker.
const

Properties

background Color
The color to fill in the background of the CupertinoPickerDefaultSelectionOverlay. It Support for use CupertinoDynamicColor.
final
capEndEdge bool
Whether to use the default use rounded corners and margin on the end side.
final
capStartEdge bool
Whether to use the default use rounded corners and margin on the start side.
final
hashCode int
The hash code for this object.
nonVirtual">@nonVirtualread-onlyinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
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.
protected">@protectedinherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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}) 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.
nonVirtual">@nonVirtualinherited