refactor(ui_component): update example (#92)

This commit is contained in:
AN12345 2022-12-12 14:21:13 -05:00
parent c6d8ca37fe
commit e8172004a3
4 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ class CustomAppBar extends AppBarComponent {
); );
@override @override
AppBarComponent configure( AppBarComponent? configure(
{String? title, Widget? leading, List<Widget>? actions}) => {String? title, Widget? leading, List<Widget>? actions}) =>
CustomAppBar( CustomAppBar(
title: title ?? this.title, title: title ?? this.title,

View File

@ -29,7 +29,7 @@ class CustomBottomNavigationBar extends BottomNavigationBarComponent {
); );
@override @override
CustomBottomNavigationBar configure({ CustomBottomNavigationBar? configure({
void Function(BuildContext, int)? onTap, void Function(BuildContext, int)? onTap,
int currentIndex = 0, int currentIndex = 0,
}) => }) =>

View File

@ -11,6 +11,6 @@ class CustomErrorWidget extends ErrorWidgetComponent {
); );
@override @override
ErrorWidgetComponent configure({String? error}) => ErrorWidgetComponent? configure({String? error}) =>
CustomErrorWidget(error: error ?? this.error); CustomErrorWidget(error: error ?? this.error);
} }

View File

@ -12,7 +12,7 @@ class CustomLoadingWidget extends LoadingWidgetComponent {
); );
@override @override
CustomLoadingWidget configure({Color? color}) => CustomLoadingWidget( CustomLoadingWidget? configure({Color? color}) => CustomLoadingWidget(
color: color ?? this.color, color: color ?? this.color,
); );
} }