AppNavigationBar constructor

AppNavigationBar({
  1. Key? key,
  2. Widget? title,
  3. bool automaticallyImplyLeading = true,
  4. PreferredSizeWidget? bottom,
  5. List<Widget>? actions,
  6. bool centerTitle = true,
  7. double titleSpacing = NavigationToolbar.kMiddleSpacing,
  8. VoidCallback? onBack,
  9. AppBarBackType? leadingType,
  10. Widget? leading,
  11. Brightness brightness = Brightness.dark,
  12. Color? backgroundColor,
  13. double? elevation,
})

Implementation

AppNavigationBar({
  super.key,
  super.title,
  super.automaticallyImplyLeading,
  super.bottom,
  super.actions,
  bool super.centerTitle = true,
  double super.titleSpacing = NavigationToolbar.kMiddleSpacing,
  VoidCallback? onBack,
  AppBarBackType? leadingType,
  Widget? leading,
  Brightness brightness = Brightness.dark,
  Color? backgroundColor,
  double? elevation,
}) : super(
  backgroundColor: backgroundColor ??
      AppBase.shared.theme.navigationBar.backgroundColor,
  leading: leading ??
      (leadingType == AppBarBackType.none
          ? null
          : AppBarBack(
        onBack: onBack,
        backType: (leadingType ?? AppBarBackType.back),
        brightness: brightness,
      )),
  elevation: elevation ?? 0,
);