AtomicNavigationRail constructor

const AtomicNavigationRail({
  1. Key? key,
  2. required List<AtomicNavigationRailDestination> destinations,
  3. required int selectedIndex,
  4. required ValueChanged<int> onDestinationSelected,
  5. Color? backgroundColor,
  6. double? elevation,
  7. bool extended = false,
  8. Widget? leading,
  9. Widget? trailing,
  10. double groupAlignment = 0.0,
  11. NavigationRailLabelType? labelType,
  12. TextStyle? unselectedLabelTextStyle,
  13. TextStyle? selectedLabelTextStyle,
  14. IconThemeData? unselectedIconTheme,
  15. IconThemeData? selectedIconTheme,
  16. double minWidth = 72.0,
  17. double minExtendedWidth = 256.0,
  18. bool useIndicator = true,
  19. Color? indicatorColor,
  20. ShapeBorder? indicatorShape,
})

Implementation

const AtomicNavigationRail({
  super.key,
  required this.destinations,
  required this.selectedIndex,
  required this.onDestinationSelected,
  this.backgroundColor,
  this.elevation,
  this.extended = false,
  this.leading,
  this.trailing,
  this.groupAlignment = 0.0,
  this.labelType,
  this.unselectedLabelTextStyle,
  this.selectedLabelTextStyle,
  this.unselectedIconTheme,
  this.selectedIconTheme,
  this.minWidth = 72.0,
  this.minExtendedWidth = 256.0,
  this.useIndicator = true,
  this.indicatorColor,
  this.indicatorShape,
});