WrapperAppBar constructor

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

Implementation

WrapperAppBar({
  Key? key,
  Widget? leading,
  bool automaticallyImplyLeading = true,
  Widget? title,
  List<Widget>? actions,
  Widget? flexibleSpace,
  PreferredSizeWidget? bottom,
  double elevation = 0,
  double? scrolledUnderElevation,
  ScrollNotificationPredicate notificationPredicate =
      defaultScrollNotificationPredicate,
  Color? shadowColor,
  Color? surfaceTintColor,
  ShapeBorder? shape,
  Color backgroundColor = Colors.white,
  Color? foregroundColor,
  IconThemeData? iconTheme,
  IconThemeData? actionsIconTheme,
  bool primary = true,
  bool centerTitle = true,
  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,
  String? titleText,
}) : super(
        key: key,
        leading:
            leading ?? (automaticallyImplyLeading ? _defaultLeading : null),
        automaticallyImplyLeading: automaticallyImplyLeading,
        title: title ??
            _defaultTitle ??
            Text(titleText ?? '', style: titleTextStyle),
        actions: actions,
        flexibleSpace: flexibleSpace,
        bottom: bottom,
        elevation: elevation,
        scrolledUnderElevation: scrolledUnderElevation,
        notificationPredicate: notificationPredicate,
        shadowColor: shadowColor,
        surfaceTintColor: surfaceTintColor,
        shape: shape,
        backgroundColor: backgroundColor,
        foregroundColor: foregroundColor,
        iconTheme: iconTheme,
        actionsIconTheme: actionsIconTheme,
        primary: primary,
        centerTitle: centerTitle,
        excludeHeaderSemantics: excludeHeaderSemantics,
        titleSpacing: titleSpacing,
        toolbarOpacity: toolbarOpacity,
        bottomOpacity: bottomOpacity,
        toolbarHeight: toolbarHeight ?? _defaultToolbarHeight,
        leadingWidth: leadingWidth,
        toolbarTextStyle: toolbarTextStyle ?? _defaultToolbarTextStyle,
        titleTextStyle: titleTextStyle ??
            _defaultTitleTextStyle ??
            const TextStyle(color: Colors.black, fontSize: 18),
        systemOverlayStyle: systemOverlayStyle ?? _defaultSystemOverlayStyle,
        forceMaterialTransparency: forceMaterialTransparency,
        clipBehavior: clipBehavior,
      );