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