1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-29 06:26:02 +00:00

is FilteredItems

This commit is contained in:
Yan Maniez 2020-02-26 00:49:46 +01:00
parent 90b643e216
commit 90abb5ccb0

View file

@ -191,7 +191,7 @@ class _MyHomePageState extends State<MyHomePage> {
},
items: buildBottomNavigationBarItems(),
),
endDrawer: Drawer(
endDrawer: item is FilteredItems ? Drawer(
child: ListView(
// Important: Remove any padding from the ListView.
padding: EdgeInsets.zero,
@ -240,10 +240,10 @@ class _MyHomePageState extends State<MyHomePage> {
),
],
),
),
) : null,
appBar: AppBar(
title: Text(widget.id),
actions: [
actions: item is FilteredItems ? [
Builder(
builder: (context) => IconButton(
icon: SvgPicture.asset(
@ -256,7 +256,7 @@ class _MyHomePageState extends State<MyHomePage> {
tooltip: MaterialLocalizations.of(context).openAppDrawerTooltip,
),
),
],
] : null,
),
);
}