ToolsAppBar constructor
ToolsAppBar({
- Key? key,
- required BuildContext context,
- String? title,
- double leftIndent = 0.0,
- ToolBar leftToolBar = const ToolBar(),
- double rightIndent = 0.0,
- ToolBar rightToolBar = const ToolBar(),
- Widget? leading,
- bool automaticallyImplyLeading = true,
- List<
Widget> ? actions, - PreferredSizeWidget? bottom,
- double? elevation,
- double? scrolledUnderElevation,
- ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
- Color? shadowColor,
- Color? surfaceTintColor,
- ShapeBorder? shape,
- Color? backgroundColor,
- Color? foregroundColor,
- IconThemeData? iconTheme,
- IconThemeData? actionsIconTheme,
- bool primary = true,
- bool? centerTitle,
- bool excludeHeaderSemantics = false,
- double? titleSpacing,
- double toolbarOpacity = 1.0,
- double bottomOpacity = 1.0,
- double? toolbarHeight,
- double? leadingWidth,
- TextStyle? toolbarTextStyle,
- TextStyle? titleTextStyle,
- SystemUiOverlayStyle? systemOverlayStyle,
- bool forceMaterialTransparency = false,
- 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,
),
);