master #81

Closed
malo wants to merge 322 commits from master into feat/bloc_layout/new-package
3 changed files with 6 additions and 4 deletions
Showing only changes of commit e01f47d41a - Show all commits

View File

@ -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,
);

View File

@ -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,
),
);

View File

@ -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,
),
);