Add Floating Action Button to ReviewListPage

Co-authored-by: Reimar <mail@reim.ar>
This commit is contained in:
Sandertp 2024-09-04 12:27:17 +02:00
parent 6fd77b3330
commit 9b6ebd05b0

View File

@ -18,7 +18,7 @@ class _ReviewListState extends State<ReviewListPage> {
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<ReviewListPage> {
)).toList(),
),
)),
);
floatingActionButton: const FloatingActionButton(
onPressed: null,
backgroundColor: Colors.blue,
focusColor: Colors.blueGrey,
tooltip: "Write a Review",
child: Icon(CupertinoIcons.plus),
),
));
}
}