diff --git a/covas_mobile/lib/ListItemMenu.dart b/covas_mobile/lib/ListItemMenu.dart index 2ceded1..834c92c 100644 --- a/covas_mobile/lib/ListItemMenu.dart +++ b/covas_mobile/lib/ListItemMenu.dart @@ -84,21 +84,30 @@ class _MyHomePageState extends State { Widget buildPosts(List posts) { // ListView Builder to show data in a list 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("Item list menu"), - ), - body: ListView.separated( - itemCount: posts.length, - itemBuilder: (context, index) { - final post = posts[index]; - return ListTile( - title: Text('${post.name!}'), subtitle: Text('${post.place!}')); - }, - separatorBuilder: (context, index) { - return Divider(); - }, - )); + 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("Item list menu"), + backgroundColor: Colors.blue, + foregroundColor: Colors.white, + ), + body: ListView.separated( + itemCount: posts.length, + itemBuilder: (context, index) { + final post = posts[index]; + return ListTile( + title: Text('${post.name!}'), subtitle: Text('${post.place!}')); + }, + separatorBuilder: (context, index) { + return Divider(); + }, + ), + floatingActionButton: FloatingActionButton( + onPressed: () {}, + backgroundColor: Colors.blue, + tooltip: 'Recherche', + child: const Icon(Icons.search, color: Colors.white), + ), + ); } } diff --git a/covas_mobile/lib/main.dart b/covas_mobile/lib/main.dart index 0f7e5f8..817a956 100644 --- a/covas_mobile/lib/main.dart +++ b/covas_mobile/lib/main.dart @@ -154,6 +154,8 @@ class _LoginDemoState extends State with ShowErrorDialog { backgroundColor: Colors.white, appBar: AppBar( title: Text("Login Page"), + backgroundColor: Colors.blue, + foregroundColor: Colors.white, ), body: SingleChildScrollView( child: Column(