AntdNavBar class

@t 导航栏 @g 导航 @o 93 @d 为页面提供全局性的导航功能。 @u 需要显示当前页面内容的标题和操作。

Inheritance

Constructors

AntdNavBar({Key? key, AntdNavBarStyle? style, AntdStyleBuilder<AntdNavBarStyle, AntdNavBar>? styleBuilder, Widget? back, Widget? backIcon, Widget? title, Widget? subTitle, Widget? left, Widget? right, AntdPosition? safeArea, VoidCallback? onTap, VoidCallback? onBack})
const

Properties

back → Widget?
返回区域的文字,如果为 null 的话,backIcon 也不会渲染
final
backIcon → Widget?
返回图标
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
left → Widget?
左侧区域
final
onBack → VoidCallback?
返回事件
final
onTap → VoidCallback?
点击事件
final
右侧区域
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
safeArea → AntdPosition?
安全区
final
style → AntdNavBarStyle?
样式
finalinherited
styleBuilder → AntdStyleBuilder<AntdNavBarStyle, AntdNavBar>?
动态样式
finalinherited
subTitle → Widget?
子标题
final
title → Widget?
标题
final

Methods

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.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
getDefaultStyle(BuildContext context, AntdTheme theme, AntdMapToken token) → AntdNavBarStyle
override
getFinalStyle(BuildContext context, AntdNavBarStyle style, AntdMapToken token) → AntdNavBarStyle
inherited
getInputStyle(BuildContext context) → AntdNavBarStyle?
inherited
getStyle(BuildContext context) → AntdNavBarStyle
inherited
getStyleBuilder(BuildContext context) → AntdStyleBuilder<AntdNavBarStyle, AntdNavBar>?
inherited
getThemeStyle(BuildContext context, AntdTheme theme) → AntdStyleBuilder<AntdNavBarStyle, AntdNavBar>?
override
getWidget(BuildContext context) → AntdNavBar
override
margeStyle(AntdNavBarStyle defaultStyle, AntdNavBarStyle? style) → AntdNavBarStyle
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(BuildContext context, AntdNavBarStyle style) → Widget
override
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