diff --git a/packages/wyatt_ui_components/example/lib/components/custom_app_bar.g.dart b/packages/wyatt_ui_components/example/lib/components/custom_app_bar.g.dart index af384641..911b0f37 100644 --- a/packages/wyatt_ui_components/example/lib/components/custom_app_bar.g.dart +++ b/packages/wyatt_ui_components/example/lib/components/custom_app_bar.g.dart @@ -10,6 +10,47 @@ class $CustomAppBarCWProxyImpl implements $AppBarComponentCWProxy { const $CustomAppBarCWProxyImpl(this._value); final CustomAppBar _value; @override + CustomAppBar shape(ShapeBorder? shape) => this(shape: shape); + @override + CustomAppBar systemOverlayStyle(SystemUiOverlayStyle? systemOverlayStyle) => + this(systemOverlayStyle: systemOverlayStyle); + @override + CustomAppBar automaticallyImplyLeading(bool? automaticallyImplyLeading) => + this(automaticallyImplyLeading: automaticallyImplyLeading); + @override + CustomAppBar flexibleSpace(Widget? flexibleSpace) => + this(flexibleSpace: flexibleSpace); + @override + CustomAppBar bottom(PreferredSizeWidget? bottom) => this(bottom: bottom); + @override + CustomAppBar elevation(double? elevation) => this(elevation: elevation); + @override + CustomAppBar scrolledUnderElevation(double? scrolledUnderElevation) => + this(scrolledUnderElevation: scrolledUnderElevation); + @override + CustomAppBar shadowColor(Color? shadowColor) => + this(shadowColor: shadowColor); + @override + CustomAppBar surfaceTintColor(Color? surfaceTintColor) => + this(surfaceTintColor: surfaceTintColor); + @override + CustomAppBar backgroundColor(MultiColor? backgroundColor) => + this(backgroundColor: backgroundColor); + @override + CustomAppBar iconTheme(IconThemeData? iconTheme) => + this(iconTheme: iconTheme); + @override + CustomAppBar primary(bool? primary) => this(primary: primary); + @override + CustomAppBar excludeHeaderSemantics(bool? excludeHeaderSemantics) => + this(excludeHeaderSemantics: excludeHeaderSemantics); + @override + CustomAppBar toolbarHeight(double? toolbarHeight) => + this(toolbarHeight: toolbarHeight); + @override + CustomAppBar leadingWidth(double? leadingWidth) => + this(leadingWidth: leadingWidth); + @override CustomAppBar title(TextWrapper? title) => this(title: title); @override CustomAppBar leading(Widget? leading) => this(leading: leading); @@ -18,13 +59,32 @@ class $CustomAppBarCWProxyImpl implements $AppBarComponentCWProxy { @override CustomAppBar centerTitle(bool? centerTitle) => this(centerTitle: centerTitle); @override + CustomAppBar expandedWidget(List? expandedWidget) => + this(expandedWidget: expandedWidget); + @override CustomAppBar key(Key? key) => this(key: key); @override CustomAppBar call({ + ShapeBorder? shape, + SystemUiOverlayStyle? systemOverlayStyle, + bool? automaticallyImplyLeading, + Widget? flexibleSpace, + PreferredSizeWidget? bottom, + double? elevation, + double? scrolledUnderElevation, + Color? shadowColor, + Color? surfaceTintColor, + MultiColor? backgroundColor, + IconThemeData? iconTheme, + bool? primary, + bool? excludeHeaderSemantics, + double? toolbarHeight, + double? leadingWidth, TextWrapper? title, Widget? leading, List? actions, bool? centerTitle, + List? expandedWidget, Key? key, }) => CustomAppBar( diff --git a/packages/wyatt_ui_components/lib/src/domain/entities/app_bar_component.dart b/packages/wyatt_ui_components/lib/src/domain/entities/app_bar_component.dart index fd28328d..27326808 100644 --- a/packages/wyatt_ui_components/lib/src/domain/entities/app_bar_component.dart +++ b/packages/wyatt_ui_components/lib/src/domain/entities/app_bar_component.dart @@ -15,6 +15,7 @@ // along with this program. If not, see . import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; import 'package:wyatt_component_copy_with_extension/component_copy_with_extension.dart'; import 'package:wyatt_ui_components/wyatt_wyatt_ui_components.dart'; @@ -24,14 +25,46 @@ part 'app_bar_component.g.dart'; abstract class AppBarComponent extends Component with CopyWithMixin<$AppBarComponentCWProxy> { const AppBarComponent({ + this.shape, + this.systemOverlayStyle, + this.automaticallyImplyLeading, + this.flexibleSpace, + this.bottom, + this.elevation, + this.scrolledUnderElevation, + this.shadowColor, + this.surfaceTintColor, + this.backgroundColor, + this.iconTheme, + this.primary, + this.excludeHeaderSemantics, + this.toolbarHeight, + this.leadingWidth, this.title, this.leading, this.actions, this.centerTitle, + this.expandedWidget, super.key, }); final TextWrapper? title; final bool? centerTitle; final Widget? leading; final List? actions; + final bool? automaticallyImplyLeading; + final Widget? flexibleSpace; + final PreferredSizeWidget? bottom; + final double? elevation; + final double? scrolledUnderElevation; + final Color? shadowColor; + final Color? surfaceTintColor; + final MultiColor? backgroundColor; + final IconThemeData? iconTheme; + final bool? primary; + final bool? excludeHeaderSemantics; + final double? toolbarHeight; + final double? leadingWidth; + final SystemUiOverlayStyle? systemOverlayStyle; + final ShapeBorder? shape; + final List? expandedWidget; } diff --git a/packages/wyatt_ui_components/lib/src/domain/entities/app_bar_component.g.dart b/packages/wyatt_ui_components/lib/src/domain/entities/app_bar_component.g.dart index 945a035c..bb6bcf5e 100644 --- a/packages/wyatt_ui_components/lib/src/domain/entities/app_bar_component.g.dart +++ b/packages/wyatt_ui_components/lib/src/domain/entities/app_bar_component.g.dart @@ -7,16 +7,48 @@ part of 'app_bar_component.dart'; // ************************************************************************** abstract class $AppBarComponentCWProxy { + AppBarComponent shape(ShapeBorder? shape); + AppBarComponent systemOverlayStyle(SystemUiOverlayStyle? systemOverlayStyle); + AppBarComponent automaticallyImplyLeading(bool? automaticallyImplyLeading); + AppBarComponent flexibleSpace(Widget? flexibleSpace); + AppBarComponent bottom(PreferredSizeWidget? bottom); + AppBarComponent elevation(double? elevation); + AppBarComponent scrolledUnderElevation(double? scrolledUnderElevation); + AppBarComponent shadowColor(Color? shadowColor); + AppBarComponent surfaceTintColor(Color? surfaceTintColor); + AppBarComponent backgroundColor(MultiColor? backgroundColor); + AppBarComponent iconTheme(IconThemeData? iconTheme); + AppBarComponent primary(bool? primary); + AppBarComponent excludeHeaderSemantics(bool? excludeHeaderSemantics); + AppBarComponent toolbarHeight(double? toolbarHeight); + AppBarComponent leadingWidth(double? leadingWidth); AppBarComponent title(TextWrapper? title); AppBarComponent leading(Widget? leading); AppBarComponent actions(List? actions); AppBarComponent centerTitle(bool? centerTitle); + AppBarComponent expandedWidget(List? expandedWidget); AppBarComponent key(Key? key); AppBarComponent call({ + ShapeBorder? shape, + SystemUiOverlayStyle? systemOverlayStyle, + bool? automaticallyImplyLeading, + Widget? flexibleSpace, + PreferredSizeWidget? bottom, + double? elevation, + double? scrolledUnderElevation, + Color? shadowColor, + Color? surfaceTintColor, + MultiColor? backgroundColor, + IconThemeData? iconTheme, + bool? primary, + bool? excludeHeaderSemantics, + double? toolbarHeight, + double? leadingWidth, TextWrapper? title, Widget? leading, List? actions, bool? centerTitle, + List? expandedWidget, Key? key, }); }