refactor(bloc_layout): update package using nullable component data (#92)
This commit is contained in:
+3
-2
@@ -27,10 +27,11 @@ abstract class CrudCubitConsumerScreenBase<
|
||||
const CrudCubitConsumerScreenBase({super.key});
|
||||
|
||||
Widget errorBuilder(BuildContext context, CrudError state) =>
|
||||
context.components.errorWidget.configure(error: state.message);
|
||||
context.components.errorWidget?.configure(error: state.message) ??
|
||||
const SizedBox.shrink();
|
||||
|
||||
Widget loadingBuilder(BuildContext context, CrudLoading state) =>
|
||||
context.components.loadingWidget;
|
||||
context.components.loadingWidget ?? const SizedBox.shrink();
|
||||
|
||||
Widget initialBuilder(BuildContext context, CrudInitial state) =>
|
||||
const SizedBox.shrink();
|
||||
|
||||
Reference in New Issue
Block a user