VerticalBarEdge class
Exposes the native edge for vertical navigation bars on iPhone Duo, with the system bar regions sampled with it.
Reads iOS 27.1's UITraitCollection.verticalBarEdge through the plugin, from native trait events and from queries
when the window size or view padding changes and when the app resumes. Where there is no vertical bar the edge is
null, and an application can fall back to a width rule. Edges are physical left/right: UIKit's leading/trailing is
converted with its layout direction, so right-to-left text does not swap them.
Wrap the application once, outside SideStatusBarInsets, which also needs the edge:
VerticalBarEdge(child: SideStatusBarInsets(child: ...)). Read the values with of, statusBarHiddenOf,
TopBarRegion.of, and VerticalBarRegion.of.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- VerticalBarEdge
Constructors
- VerticalBarEdge({Key? key, required Widget child})
-
const
Properties
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< VerticalBarEdge> -
Creates the mutable state for this widget at a given location in the tree.
override
-
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
-
of(
BuildContext context) → HorizontalEdge? - The native edge, or null when no vertical bar or inherited scope is present.
-
parse(
Object? value) → HorizontalEdge? - Parses the edge from a native payload; an unknown value or payload shape gives null.
-
parseStatusBarHidden(
Object? value) → bool - Parses status bar visibility; missing or non-boolean values return false.
-
statusBarHiddenOf(
BuildContext context) → bool - Whether the native status bar is hidden, which decides whether the status column shows the status display.
Constants
- channel → const MethodChannel
-
The channel shared with
DuoRailKitPlugin.swift; keep both sides in sync. - edgeChangedMethod → const String
- Receives native updates; matches the Swift notification method name.
- getEdgeMethod → const String
- Requests the current native value; matches the Swift handler's method name.