1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-29 22:45:44 +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(), items: buildBottomNavigationBarItems(),
), ),
endDrawer: Drawer( endDrawer: item is FilteredItems ? Drawer(
child: ListView( child: ListView(
// Important: Remove any padding from the ListView. // Important: Remove any padding from the ListView.
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
@ -240,10 +240,10 @@ class _MyHomePageState extends State<MyHomePage> {
), ),
], ],
), ),
), ) : null,
appBar: AppBar( appBar: AppBar(
title: Text(widget.id), title: Text(widget.id),
actions: [ actions: item is FilteredItems ? [
Builder( Builder(
builder: (context) => IconButton( builder: (context) => IconButton(
icon: SvgPicture.asset( icon: SvgPicture.asset(
@ -256,7 +256,7 @@ class _MyHomePageState extends State<MyHomePage> {
tooltip: MaterialLocalizations.of(context).openAppDrawerTooltip, tooltip: MaterialLocalizations.of(context).openAppDrawerTooltip,
), ),
), ),
], ] : null,
), ),
); );
} }