MyAdaptiveNavigationItem class

自适应导航项

Constructors

MyAdaptiveNavigationItem({required Widget icon, Widget? selectedIcon, required String label, String? subtitle, String? group, FutureOr<void> onTap()?, int? badgeCount, String? route})
const

Properties

badgeCount → int?
通知徽章数量(可选)
final
group → String?
分组名称(仅在 Large 1200dp+ 层级显示分组标题) 相同 group 值的连续项归为一组,首项上方显示分组标题
final
hashCode → int
The hash code for this object.
no setterinherited
icon → Widget
图标
final
label → String
标签文本
final
onTap → FutureOr<void> Function()?
点击回调
final
route → String?
关联的路由路径(可选) 用于自动同步drawer选中状态与当前路由
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedIcon → Widget?
选中时的图标(可选)
final
subtitle → String?
副标题(仅在 Large 1200dp+ 层级显示)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toNavigationDestination() → NavigationDestination
转换为Flutter标准的NavigationDestination
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited