From 9b6ebd05b0cccce8a69806fc5e69d83f819693df Mon Sep 17 00:00:00 2001 From: Sandertp Date: Wed, 4 Sep 2024 12:27:17 +0200 Subject: [PATCH] Add Floating Action Button to ReviewListPage Co-authored-by: Reimar --- Mobile/lib/reviewList.dart | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Mobile/lib/reviewList.dart b/Mobile/lib/reviewList.dart index d75f656..b5604c1 100644 --- a/Mobile/lib/reviewList.dart +++ b/Mobile/lib/reviewList.dart @@ -18,7 +18,7 @@ class _ReviewListState extends State { return SideMenu( selectedIndex: -1, - body: SingleChildScrollView(child: Container( + body: Scaffold(body: SingleChildScrollView(child: Container( decoration: const BoxDecoration(color: Color(0xFFF9f9f9)), width: MediaQuery.of(context).size.width, padding: const EdgeInsets.all(20.0), @@ -59,6 +59,13 @@ class _ReviewListState extends State { )).toList(), ), )), - ); + floatingActionButton: const FloatingActionButton( + onPressed: null, + backgroundColor: Colors.blue, + focusColor: Colors.blueGrey, + tooltip: "Write a Review", + child: Icon(CupertinoIcons.plus), + ), + )); } } \ No newline at end of file