PNavigationBar class

A widget that attempts to consolidate the different behaviors of each platform into one single, PlatformAdaptingWidget.



PNavigationBar({Key key, Widget leading, List<Widget> actions, Widget title, PreferredSizeWidget androidBottom(), Color backgroundColor, String iosPreviousPageTitle, EdgeInsetsDirectional iosPadding, double androidElevation = _defaultElevationAndroid, Widget androidFlexibleSpace, bool androidCenterTitle = _defaultCenterTitleAndroid, double androidTitleSpacing = NavigationToolbar.kMiddleSpacing, Color iconColor, Object iosHeroTag, bool iosMirrorAndroid = true, TextTheme textTheme, TargetPlatform renderPlatform})


actions → List<Widget>
The list of actions to apply here. The CupertinoNavigationBar only takes the first widget supplied here. See AppBar.actions See CupertinoNavigationBar.trailing
final, inherited
androidBottom → PreferredSizeWidget
Android only-widget that appears at the bottom of the AppBar. A function since it may not be rendered. See AppBar.bottom
final, inherited
androidCenterTitle → bool
See AppBar.centerTitle
final, inherited
androidElevation → double
See AppBar.elevation
final, inherited
androidFlexibleSpace → Widget
See AppBar.flexibleSpace
final, inherited
androidTitleSpacing → double
See AppBar.titleSpacing
final, inherited
backgroundColor → Color
final, inherited
hashCode → int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
iconColor → Color
final, inherited
iosBackgroundColor → Color
read-only, inherited
iosHeroTag → Object
final, inherited
iosMirrorAndroid → bool
if true, iOS will make background color and icon tint similar to android.
final, inherited
iosPadding → EdgeInsetsDirectional
See CupertinoNavigationBar.padding
final, inherited
iosPreviousPageTitle → String
See CupertinoNavigationBar.previousPageTitle
final, inherited
key → Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
leading → Widget
Leave null for default behavior on each platform. See CupertinoNavigationBar.leading See AppBar.leading
final, inherited
preferredSize → Size
The size this widget would prefer if it were otherwise unconstrained. [...]
renderCupertino → WidgetBuilder
Return the widget to construct for the TargetPlatform.iOS
read-only, override
renderFuchsia → WidgetBuilder
Return the widget to construct for the TargetPlatform.fuschia. For now, this defaults to the material design components.
read-only, inherited
renderMaterial → WidgetBuilder
Return the widget to construct for the
read-only, override
renderPlatform → TargetPlatform
Can specify a TargetPlatform on the fly on a per-widget basis. This is simpler than just wrapping a single widget in a PTheme widget.
final, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
textTheme → TextTheme
final, inherited
title → Widget
On Android this is left-aligned. On iOS this is center-aligned. See CupertinoNavigationBar.middle See AppBar.title
final, inherited


applyIconColor(ThemeData theme) → IconThemeData
build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget. [...]
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree. [...]
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
getIosIconColor(BuildContext context) → Color
getIOSTitle(BuildContext context) → Widget
getPrimaryIOSAction() → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
shouldFullyObstruct(BuildContext context) → bool
True if the navigation bar's background color has no transparency. See CupertinoNavigationBar.shouldFullyObstruct
toDiagnosticsNode({String name, DiagnosticsTreeStyle style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. [...]
toString({DiagnosticLevel minLevel =}) → String
Returns a string representation of this object.
toStringDeep({String prefixLineOne = '', String prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a string representation of this node and its descendants. [...]
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object. [...]
toStringShort() → String
A short, textual description of this widget.


operator ==(Object other) → bool
The equality operator. [...]
@nonVirtual, inherited