master #81
@ -31,7 +31,8 @@ class AppBarLayout extends Layout {
|
||||
Widget build(BuildContext context) => Scaffold(
|
||||
appBar: PreferredSize(
|
||||
preferredSize: const Size.fromHeight(60),
|
||||
child: context.components.appBar.configure(title: title),
|
||||
child: context.components.appBar?.configure(title: title) ??
|
||||
const SizedBox.shrink(),
|
||||
),
|
||||
body: body,
|
||||
);
|
||||
|
@ -14,7 +14,7 @@ class BottomNavigationBarLayout extends Layout {
|
||||
@override
|
||||
Widget build(BuildContext context) => Scaffold(
|
||||
body: body,
|
||||
bottomNavigationBar: context.components.bottomNavigationBar.configure(
|
||||
bottomNavigationBar: context.components.bottomNavigationBar?.configure(
|
||||
currentIndex: currentIndex,
|
||||
),
|
||||
);
|
||||
|
@ -34,10 +34,11 @@ class FrameLayout extends Layout {
|
||||
Widget build(BuildContext context) => Scaffold(
|
||||
appBar: PreferredSize(
|
||||
preferredSize: const Size.fromHeight(60),
|
||||
child: context.components.appBar.configure(title: title),
|
||||
child: context.components.appBar?.configure(title: title) ??
|
||||
const SizedBox.shrink(),
|
||||
),
|
||||
body: body,
|
||||
bottomNavigationBar: context.components.bottomNavigationBar.configure(
|
||||
bottomNavigationBar: context.components.bottomNavigationBar?.configure(
|
||||
currentIndex: currentIndex,
|
||||
),
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user