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 2fd0319a..af384641 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 @@ -16,12 +16,15 @@ class $CustomAppBarCWProxyImpl implements $AppBarComponentCWProxy { @override CustomAppBar actions(List? actions) => this(actions: actions); @override + CustomAppBar centerTitle(bool? centerTitle) => this(centerTitle: centerTitle); + @override CustomAppBar key(Key? key) => this(key: key); @override CustomAppBar call({ TextWrapper? title, Widget? leading, List? actions, + bool? centerTitle, 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 4345b741..fd28328d 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 @@ -27,9 +27,11 @@ abstract class AppBarComponent extends Component this.title, this.leading, this.actions, + this.centerTitle, super.key, }); final TextWrapper? title; + final bool? centerTitle; final Widget? leading; final List? actions; } 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 e16ec248..945a035c 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 @@ -10,11 +10,13 @@ abstract class $AppBarComponentCWProxy { AppBarComponent title(TextWrapper? title); AppBarComponent leading(Widget? leading); AppBarComponent actions(List? actions); + AppBarComponent centerTitle(bool? centerTitle); AppBarComponent key(Key? key); AppBarComponent call({ TextWrapper? title, Widget? leading, List? actions, + bool? centerTitle, Key? key, }); }