ToolsAppBar constructor

ToolsAppBar({
  1. Key? key,
  2. required BuildContext context,
  3. String? title,
  4. double leftIndent = 0.0,
  5. ToolBar leftToolBar = const ToolBar(),
  6. double rightIndent = 0.0,
  7. ToolBar rightToolBar = const ToolBar(),
  8. Widget? leading,
  9. bool automaticallyImplyLeading = true,
  10. List<Widget>? actions,
  11. PreferredSizeWidget? bottom,
  12. double? elevation,
  13. double? scrolledUnderElevation,
  14. ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
  15. Color? shadowColor,
  16. Color? surfaceTintColor,
  17. ShapeBorder? shape,
  18. Color? backgroundColor,
  19. Color? foregroundColor,
  20. IconThemeData? iconTheme,
  21. IconThemeData? actionsIconTheme,
  22. bool primary = true,
  23. bool? centerTitle,
  24. bool excludeHeaderSemantics = false,
  25. double? titleSpacing,
  26. double toolbarOpacity = 1.0,
  27. double bottomOpacity = 1.0,
  28. double? toolbarHeight,
  29. double? leadingWidth,
  30. TextStyle? toolbarTextStyle,
  31. TextStyle? titleTextStyle,
  32. SystemUiOverlayStyle? systemOverlayStyle,
  33. bool forceMaterialTransparency = false,
  34. Clip? clipBehavior,
})

Implementation

ToolsAppBar({
  super.key,
  required BuildContext context,

  /// Customizable AppBar attributes
  String? title,
  double leftIndent = 0.0,
  ToolBar leftToolBar = const ToolBar(),
  double rightIndent = 0.0,
  ToolBar rightToolBar = const ToolBar(),

  /// AppBar attributes
  super.leading,
  super.automaticallyImplyLeading,
  super.actions,
  super.bottom,
  super.elevation,
  super.scrolledUnderElevation,
  super.notificationPredicate,
  super.shadowColor,
  super.surfaceTintColor,
  super.shape,
  super.backgroundColor,
  super.foregroundColor,
  super.iconTheme,
  super.actionsIconTheme,
  super.primary,
  super.centerTitle,
  super.excludeHeaderSemantics,
  super.titleSpacing,
  super.toolbarOpacity,
  super.bottomOpacity,
  super.toolbarHeight,
  super.leadingWidth,
  super.toolbarTextStyle,
  super.titleTextStyle,
  super.systemOverlayStyle,
  super.forceMaterialTransparency,
  super.clipBehavior,

  /// AppBar widgets that are
  /// overridden by the tools

  // Widget? title,
  // Widget? flexibleSpace,
}) : super(
        title: _titleWidget(
          context,
          title,
          titleTextStyle,
          toolbarTextStyle,
          foregroundColor,
        ),
        // create toolbars for the left and right
        // within the flexible space widget
        flexibleSpace: _flexibleSpaceWidget(
          leftIndent,
          leftToolBar,
          rightIndent,
          rightToolBar,
        ),
      );