only show appbar on member list if its a drawer
This commit is contained in:
parent
240984a832
commit
9cc18e16b8
1 changed files with 9 additions and 9 deletions
|
|
@ -34,13 +34,13 @@ class MemberList extends HookConsumerWidget {
|
||||||
shape: Border(),
|
shape: Border(),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
|
if (Scaffold.of(context).hasEndDrawer)
|
||||||
AppBar(
|
AppBar(
|
||||||
scrolledUnderElevation: 0,
|
scrolledUnderElevation: 0,
|
||||||
leading: Icon(Icons.people),
|
leading: Icon(Icons.people),
|
||||||
title: Text("Members"),
|
title: Text("Members"),
|
||||||
actionsPadding: .only(right: 4),
|
actionsPadding: .only(right: 4),
|
||||||
actions: [
|
actions: [
|
||||||
if (Scaffold.of(context).hasEndDrawer)
|
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: Scaffold.of(context).closeEndDrawer,
|
onPressed: Scaffold.of(context).closeEndDrawer,
|
||||||
icon: Icon(Icons.close),
|
icon: Icon(Icons.close),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue