diff --git a/covas_mobile/lib/pages/ItemMenu.dart b/covas_mobile/lib/pages/ItemMenu.dart index 63f83b7..e42162e 100644 --- a/covas_mobile/lib/pages/ItemMenu.dart +++ b/covas_mobile/lib/pages/ItemMenu.dart @@ -14,6 +14,8 @@ import '../variable/globals.dart' as globals; import '../classes/events.dart'; +import 'ListItemMenu.dart'; + void main() { initializeDateFormatting("fr_FR", null).then((_) => (const MyApp())); } @@ -181,12 +183,18 @@ class _ItemMenuState extends State with ShowErrorDialog { // than having to individually change instances of widgets. return Scaffold( appBar: AppBar( - // Here we take the value from the MyHomePage object that was created by - // the App.build method, and use it to set our appbar title. - title: Text("${eventName}"), - backgroundColor: Colors.blue, - foregroundColor: Colors.white, - ), + // Here we take the value from the MyHomePage object that was created by + // the App.build method, and use it to set our appbar title. + title: Text("${eventName}"), + backgroundColor: Colors.blue, + foregroundColor: Colors.white, + leading: IconButton( + icon: Icon(Icons.arrow_back), + onPressed: () { + Navigator.push( + context, MaterialPageRoute(builder: (_) => ListItemMenu())); + }, + )), body: SingleChildScrollView( child: Column( children: [