NavigationView class
Constructors
-
NavigationView({Key? key, NavigationViewController? controller, OnViewActivator? onActivator, OnViewChangeListener? onChange, OnViewErrorListener? onError, OnViewHoverListener? onHover, OnViewValidListener? onValid, OnViewValidatorListener? onValidator, ViewClickEffect? clickEffect, OnViewClickListener? onClick, OnViewClickListener? onDoubleClick, OnViewClickListener? onLongClick, OnViewToggleListener? onToggleClick, OnViewNotifyListener<NavigationViewController>? onClickHandler, OnViewNotifyListener<NavigationViewController>? onDoubleClickHandler, OnViewNotifyListener<NavigationViewController>? onLongClickHandler, bool? absorbMode, bool? activated, Color? background, ValueState<Color>? backgroundState, BlendMode? backgroundBlendMode, Gradient? backgroundGradient, ValueState<Gradient>? backgroundGradientState, DecorationImage? backgroundImage, ValueState<DecorationImage>? backgroundImageState, Clip? clipBehavior, double? dimensionRatio, double? elevation, bool? enabled, bool? expandable, Color? foreground, BlendMode? foregroundBlendMode, Gradient? foregroundGradient, DecorationImage? foregroundImage, int? flex, Alignment? gravity, double? height, ValueState<double>? heightState, double? heightMax, double? heightMin, Color hoverColor = Colors.transparent, Axis? orientation, ViewPosition? position, ViewPositionType? positionType, Color pressedColor = Colors.transparent, Color rippleColor = Colors.transparent, bool? scrollable, ScrollController? scrollController, ViewScrollingType? scrollingType, ViewShape? shape, Matrix4? transform, Alignment? transformGravity, bool? visibility, double? width, ValueState<double>? widthState, double? widthMax, double? widthMin, int? animation, Curve? animationType, ImageFilter? backdropFilter, BlendMode? backdropMode, Color? borderColor, ValueState<Color>? borderColorState, double? borderSize, ValueState<double>? borderSizeState, double? borderHorizontal, ValueState<double>? borderHorizontalState, double? borderVertical, ValueState<double>? borderVerticalState, double? borderTop, ValueState<double>? borderTopState, double? borderBottom, ValueState<double>? borderBottomState, double? borderStart, ValueState<double>? borderStartState, double? borderEnd, ValueState<double>? borderEndState, double? borderStrokeAlign, double? borderRadius, ValueState<double>? borderRadiusState, double? borderRadiusBL, ValueState<double>? borderRadiusBLState, double? borderRadiusBR, ValueState<double>? borderRadiusBRState, double? borderRadiusTL, ValueState<double>? borderRadiusTLState, double? borderRadiusTR, ValueState<double>? borderRadiusTRState, bool indicatorVisible = false, double? margin, double? marginHorizontal, double? marginVertical, double? marginTop, double? marginBottom, double? marginStart, double? marginEnd, EdgeInsets? marginCustom, double? opacity, ValueState<double>? opacityState, bool opacityAlwaysIncludeSemantics = false, double? padding, double? paddingHorizontal, double? paddingVertical, double? paddingTop, double? paddingBottom, double? paddingStart, double? paddingEnd, EdgeInsets? paddingCustom, double? shadow, double? shadowBlurRadius, BlurStyle? shadowBlurStyle, Color? shadowColor, ViewShadowType? shadowType, double? shadowSpreadRadius, double? shadowHorizontal, double? shadowVertical, double? shadowStart, double? shadowEnd, double? shadowTop, double? shadowBottom, int currentIndex = 0, double? iconSize, ValueState<double>? iconSizeState, Color? iconTint, ValueState<Color>? iconTintState, IconThemeData? iconTheme, ValueState<IconThemeData>? iconThemeState, Color? titleColor, ValueState<Color>? titleColorState, double? titleSize, ValueState<double>? titleSizeState, TextStyle? titleStyle, ValueState<TextStyle>? titleStyleState, double spaceBetween = 2, ValueState<double>? spaceBetweenState, Color? itemBackground, ValueState<Color>? itemBackgroundState, double? itemMaxWidth, double? itemMaxHeight, double itemMinWidth = 80, double? itemMinHeight, double? itemMargin, double? itemMarginX, double? itemMarginY, double? itemPadding, double? itemPaddingX, double? itemPaddingY, LinearLayoutController? itemController, IconViewController? iconController, TextViewController? labelController, required List<NavigationItem> items, required NavigationViewBuilder builder, OnNavigationIndexChangeListener? onIndexChanged})
-
const
Methods
-
attach(BuildContext context, NavigationViewController controller)
→ Widget?
-
override
-
attachController(NavigationViewController controller)
→ NavigationViewController
-
override
-
build(BuildContext context, NavigationViewController controller, Widget parent)
→ Widget
-
inherited
-
createElement()
→ StatefulElement
-
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState()
→ State<YMRView<NavigationViewController>>
-
Creates the mutable state for this widget at a given 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
-
initController()
→ NavigationViewController
-
override
-
initRootProperties()
→ ViewRoots
-
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
onChangeDependencies(BuildContext context, NavigationViewController controller)
→ void
-
inherited
-
onDispose(BuildContext context, NavigationViewController controller)
→ void
-
inherited
-
onInit(BuildContext context, NavigationViewController controller)
→ void
-
inherited
-
onReady(BuildContext context, NavigationViewController controller)
→ void
-
inherited
-
onToggleHandler(BuildContext context, NavigationViewController controller)
→ void
-
inherited
-
onUpdateWidget(BuildContext context, NavigationViewController controller, dynamic oldWidget)
→ void
-
inherited
-
onViewCreated(BuildContext context, NavigationViewController controller)
→ void
-
inherited
-
root(BuildContext context, NavigationViewController controller, Widget parent)
→ 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})
→ 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