diff --git a/aidedejeu_flutter/lib/main.dart b/aidedejeu_flutter/lib/main.dart index 86248523..94f114bf 100644 --- a/aidedejeu_flutter/lib/main.dart +++ b/aidedejeu_flutter/lib/main.dart @@ -195,7 +195,45 @@ class _MyHomePageState extends State { child: ListView( // Important: Remove any padding from the ListView. padding: EdgeInsets.zero, - children: [ + children: (item as FilteredItems).toFilterMap().entries.map( + (filter) => + //ListTile(title: Text(filter.key)) + Container( + child: Wrap( + children: filter.value.toString().split("|").map( + (choice) => + FilterChip( + label: Text(choice), + backgroundColor: Colors.transparent, + shape: StadiumBorder(side: BorderSide()), + onSelected: (bool value) { + print("selected"); + }, + ) + ).toList()/* [ + FilterChip( + label: Text("truc"), + backgroundColor: Colors.transparent, + shape: StadiumBorder(side: BorderSide()), + onSelected: (bool value) { + print("selected"); + }, + ), + FilterChip( + label: Text("truc"), + backgroundColor: Colors.transparent, + shape: StadiumBorder(side: BorderSide()), + onSelected: (bool value) { + print("selected"); + }, + ), + ],*/ + ), + + ) + ).toList() + /*[ + DrawerHeader( child: Text('Drawer Header'), decoration: BoxDecoration( @@ -238,7 +276,7 @@ class _MyHomePageState extends State { ], ), ), - ], + ],*/ ), ) : null, appBar: AppBar(