fixed drawer safe area
This commit is contained in:
parent
5b018fbe75
commit
dbe5a4aa7c
1 changed files with 57 additions and 51 deletions
|
@ -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 {
|
|||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue