refactor(bloc_layout): update example (#92)
This commit is contained in:
parent
e01f47d41a
commit
c6d8ca37fe
@ -18,7 +18,7 @@ class CustomAppBar extends AppBarComponent {
|
||||
);
|
||||
|
||||
@override
|
||||
AppBarComponent configure(
|
||||
AppBarComponent? configure(
|
||||
{String? title, Widget? leading, List<Widget>? 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,
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user