fixed drawer safe area

This commit is contained in:
Thibault Deckers 2019-09-17 21:58:45 +09:00
parent 5b018fbe75
commit dbe5a4aa7c

View file

@ -19,6 +19,7 @@ class AllCollectionDrawer extends StatelessWidget {
padding: EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom),
children: [
DrawerHeader(
child: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
@ -57,6 +58,7 @@ class AllCollectionDrawer extends StatelessWidget {
),
],
),
),
decoration: BoxDecoration(
color: Theme.of(context).accentColor,
),
@ -87,7 +89,10 @@ class AllCollectionDrawer extends StatelessWidget {
}
_buildFilteredCollectionNavTile({BuildContext context, Widget leading, String title, bool Function(ImageEntry) filter}) {
return ListTile(
return SafeArea(
top: false,
bottom: false,
child: ListTile(
leading: leading,
title: Text(title),
dense: true,
@ -104,6 +109,7 @@ class AllCollectionDrawer extends StatelessWidget {
),
);
},
),
);
}
}