feat(bloc_layout): link error widget to error state
This commit is contained in:
parent
fafec78546
commit
a561cbff23
@ -27,7 +27,7 @@ abstract class CrudCubitConsumerScreenBase<
|
||||
const CrudCubitConsumerScreenBase({super.key});
|
||||
|
||||
Widget errorBuilder(BuildContext context, CrudError state) =>
|
||||
context.components.errorWidget;
|
||||
context.components.errorWidget.configure(error: state.message);
|
||||
|
||||
Widget loadingBuilder(BuildContext context, CrudLoading state) =>
|
||||
context.components.loadingWidget;
|
||||
|
Loading…
x
Reference in New Issue
Block a user