const
Widget.navigationRail(- {Key? key,
- Color? backgroundColor,
- @Default(false) bool extended,
- Widget? leading,
- Widget? trailing,
- required List<NavigationRailDestination> destinations,
- required int? selectedIndex,
- IntSelectionCallback? onDestinationSelected,
- double? elevation,
- double? groupAlignment,
- NavigationRailLabelType? labelType,
- TextStyle? unselectedLabelTextStyle,
- TextStyle? selectedLabelTextStyle,
- IconThemeData? unselectedIconTheme,
- IconThemeData? selectedIconTheme,
- double? minWidth,
- double? minExtendedWidth,
- bool? useIndicator,
- Color? indicatorColor,
- ShapeBorder? indicatorShape}
)
Implementation
const factory Widget.navigationRail({
Key? key,
Color? backgroundColor,
@Default(false) bool extended,
Widget? leading,
Widget? trailing,
required List<NavigationRailDestination> destinations,
required int? selectedIndex,
IntSelectionCallback? onDestinationSelected,
double? elevation,
double? groupAlignment,
NavigationRailLabelType? labelType,
TextStyle? unselectedLabelTextStyle,
TextStyle? selectedLabelTextStyle,
IconThemeData? unselectedIconTheme,
IconThemeData? selectedIconTheme,
double? minWidth,
double? minExtendedWidth,
bool? useIndicator,
Color? indicatorColor,
ShapeBorder? indicatorShape,
}) = NavigationRail;