PSliverNavigationBar class

Sliver implementation of the PNavigationBar.

Inheritance

Constructors

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

Properties

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
androidFloating → bool
See SliverAppBar.floating
final
androidPinned → bool
See SliverAppBar.pinned
final
androidSnap → bool
See SliverAppBar.snap
final
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
iosLargeTitle → Widget
See CupertinoSliverNavigationBar.largeTitle
final
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
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 TargetPlatform.android
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

Methods

applyIconColor(ThemeData theme) → IconThemeData
inherited
build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget. [...]
inherited
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, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
getIosIconColor(BuildContext context) → Color
inherited
getIOSTitle(BuildContext context) → Widget
inherited
getPrimaryIOSAction() → dynamic
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
Returns 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, inherited