From c6d8ca37fe7dd508bac37307d31942f36c0c75db Mon Sep 17 00:00:00 2001 From: AN12345 Date: Mon, 12 Dec 2022 14:20:20 -0500 Subject: [PATCH] refactor(bloc_layout): update example (#92) --- .../example/lib/components/theme_components.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/wyatt_bloc_layout/example/lib/components/theme_components.dart b/packages/wyatt_bloc_layout/example/lib/components/theme_components.dart index 2c57df62..2357586c 100644 --- a/packages/wyatt_bloc_layout/example/lib/components/theme_components.dart +++ b/packages/wyatt_bloc_layout/example/lib/components/theme_components.dart @@ -18,7 +18,7 @@ class CustomAppBar extends AppBarComponent { ); @override - AppBarComponent configure( + AppBarComponent? configure( {String? title, Widget? leading, List? actions}) => CustomAppBar( title: title ?? this.title, @@ -44,7 +44,7 @@ class CustomBottomBar extends BottomNavigationBarComponent { ); @override - BottomNavigationBarComponent configure( + BottomNavigationBarComponent? configure( {void Function(BuildContext p1, int p2)? onTap, int currentIndex = 0}) => this; @@ -58,7 +58,7 @@ class CustomLoadingWidget extends LoadingWidgetComponent { Center(child: CircularProgressIndicator(color: color)); @override - LoadingWidgetComponent configure({Color? color}) => CustomLoadingWidget( + LoadingWidgetComponent? configure({Color? color}) => CustomLoadingWidget( color: color ?? this.color, ); } @@ -73,7 +73,7 @@ class CustomErrorWidget extends ErrorWidgetComponent { ); @override - ErrorWidgetComponent configure({String? error}) => CustomErrorWidget( + ErrorWidgetComponent? configure({String? error}) => CustomErrorWidget( error: error ?? this.error, ); }