fix: make components nullable #221

Merged
malo merged 3 commits from ui_components/fix/nullable-components into master 2023-08-30 14:31:11 +00:00
Showing only changes of commit 008facdb6c - Show all commits

View File

@ -57,9 +57,13 @@ class BottomNavigationBarLayout extends StructuralLayout {
Widget build(BuildContext context) => Scaffold(
body: body,
bottomNavigationBar: custom?.call(
context.components.bottomNavigationBarComponent(barId).call(),
context.components
.bottomNavigationBarComponentOrNull(barId)
?.call(),
) ??
context.components.bottomNavigationBarComponent(barId).call(),
context.components
.bottomNavigationBarComponentOrNull(barId)
?.call(),
floatingActionButtonLocation:
scaffoldFieldsWrapper?.floatingActionButtonLocation,
floatingActionButtonAnimator: