XAppBar constructor
const
XAppBar({
- Key? key,
- String? title,
- Widget? child,
- TextStyle? titleTextStyle,
- VoidCallback? onTapBack,
- List<
Widget> ? actions, - bool isTitleCenter = true,
- double? toolbarHeight,
- Color? backgroundColor,
- Widget? backButton,
- Widget? leading,
- bool automaticallyImplyLeading = true,
- bool automaticallyImplyActions = true,
- Widget? flexibleSpace,
- PreferredSizeWidget? bottom,
- double? elevation,
- double? scrolledUnderElevation,
- ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
- Color? shadowColor,
- Color? surfaceTintColor,
- ShapeBorder? shape,
- Color? foregroundColor,
- IconThemeData? iconTheme,
- IconThemeData? actionsIconTheme,
- bool primary = true,
- bool excludeHeaderSemantics = false,
- double? titleSpacing,
- double toolbarOpacity = 1.0,
- double bottomOpacity = 1.0,
- double? leadingWidth,
- TextStyle? toolbarTextStyle,
- SystemUiOverlayStyle? systemOverlayStyle,
- bool forceMaterialTransparency = false,
- bool useDefaultSemanticsOrder = true,
- Clip? clipBehavior,
- EdgeInsetsGeometry? actionsPadding,
- bool animateColor = false,
Implementation
const XAppBar({
super.key,
this.title,
this.child,
this.titleTextStyle,
this.onTapBack,
this.actions,
this.isTitleCenter = true,
this.toolbarHeight,
this.backgroundColor,
this.backButton,
this.leading,
this.automaticallyImplyLeading = true,
this.automaticallyImplyActions = true,
this.flexibleSpace,
this.bottom,
this.elevation,
this.scrolledUnderElevation,
this.notificationPredicate = defaultScrollNotificationPredicate,
this.shadowColor,
this.surfaceTintColor,
this.shape,
this.foregroundColor,
this.iconTheme,
this.actionsIconTheme,
this.primary = true,
this.excludeHeaderSemantics = false,
this.titleSpacing,
this.toolbarOpacity = 1.0,
this.bottomOpacity = 1.0,
this.leadingWidth,
this.toolbarTextStyle,
this.systemOverlayStyle,
this.forceMaterialTransparency = false,
this.useDefaultSemanticsOrder = true,
this.clipBehavior,
this.actionsPadding,
this.animateColor = false,
});