This commit is contained in:
+22
-14
@@ -76,29 +76,37 @@ class FrameLayout extends StructuralLayout {
|
||||
|
||||
final ScaffoldFieldsWrapper? scaffoldFieldsWrapper;
|
||||
|
||||
PreferredSize? _buildAppBar(BuildContext context) {
|
||||
final appBar = customAppBar?.call(
|
||||
context.components.topAppBarComponentOrNull(appBarId)?.call(),
|
||||
) ??
|
||||
context.components.topAppBarComponentOrNull(appBarId)?.call();
|
||||
|
||||
return appBar != null
|
||||
? PreferredSize(
|
||||
preferredSize: Size.fromHeight(height),
|
||||
child: appBar,
|
||||
)
|
||||
: null;
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) => Scaffold(
|
||||
appBar: (customAppBar
|
||||
?.call(context.components.topAppBarComponent(appBarId)()) !=
|
||||
null)
|
||||
? PreferredSize(
|
||||
preferredSize: Size.fromHeight(height),
|
||||
child: customAppBar?.call(
|
||||
context.components.topAppBarComponent(appBarId)(),
|
||||
) ??
|
||||
context.components.topAppBarComponent(appBarId)(),
|
||||
)
|
||||
: null,
|
||||
appBar: _buildAppBar(context),
|
||||
floatingActionButton: customFloatingActionButton?.call(
|
||||
context.components
|
||||
.floatingActionButtonComponent(floatingActionButtonId)(),
|
||||
.floatingActionButtonComponentOrNull(floatingActionButtonId)
|
||||
?.call(),
|
||||
) ??
|
||||
context.components
|
||||
.floatingActionButtonComponent(floatingActionButtonId)(),
|
||||
.floatingActionButtonComponentOrNull(floatingActionButtonId)
|
||||
?.call(),
|
||||
bottomNavigationBar: customBottomNavBar?.call(
|
||||
context.components.bottomNavigationBarComponent(bottomNavBarId)(),
|
||||
) ??
|
||||
context.components.bottomNavigationBarComponent(bottomNavBarId)(),
|
||||
context.components
|
||||
.bottomNavigationBarComponentOrNull(bottomNavBarId)
|
||||
?.call(),
|
||||
body: body,
|
||||
floatingActionButtonLocation:
|
||||
scaffoldFieldsWrapper?.floatingActionButtonLocation,
|
||||
|
||||
Reference in New Issue
Block a user