PrismAdaptiveScaffold constructor

const PrismAdaptiveScaffold({
  1. Key? key,
  2. required List<AdaptiveDestination> destinations,
  3. required Widget bodyBuilder(
    1. int index
    ),
  4. int currentIndex = 0,
  5. ValueChanged<int>? onDestinationSelected,
  6. PreferredSizeWidget? appBar,
  7. Widget? floatingActionButton,
  8. Color? backgroundColor,
  9. double? railWidth,
  10. bool useExtendedRail = true,
  11. NavigationRailLabelType? railLabelType,
  12. NavigationDestinationLabelBehavior? bottomNavLabelType,
  13. Duration? transitionDuration,
})

Creates an adaptive scaffold.

Implementation

const PrismAdaptiveScaffold({
  super.key,
  required this.destinations,
  required this.bodyBuilder,
  this.currentIndex = 0,
  this.onDestinationSelected,
  this.appBar,
  this.floatingActionButton,
  this.backgroundColor,
  this.railWidth,
  this.useExtendedRail = true,
  this.railLabelType,
  this.bottomNavLabelType,
  this.transitionDuration,
});