| 1 | import 'package:cake_wallet/src/screens/dashboard/desktop_widgets/desktop_sidebar/side_menu_item.dart'; |
| 2 | import 'package:flutter/material.dart'; |
| 3 | |
| 4 | class SideMenu extends StatelessWidget { |
| 5 | const SideMenu({ |
| 6 | super.key, |
| 7 | required this.topItems, |
| 8 | required this.bottomItems, |
| 9 | required this.width, |
| 10 | }); |
| 11 | |
| 12 | final List<SideMenuItem> topItems; |
| 13 | final List<SideMenuItem> bottomItems; |
| 14 | final double width; |
| 15 | |
| 16 | @override |
| 17 | Widget build(BuildContext context) { |
| 18 | return Container( |
| 19 | color: Theme.of(context).colorScheme.surfaceContainerLowest.withOpacity(0.1), |
| 20 | width: width, |
| 21 | height: MediaQuery.of(context).size.height, |
| 22 | child: Column( |
| 23 | children: [ |
| 24 | ...topItems, |
| 25 | Spacer(), |
| 26 | ...bottomItems, |
| 27 | SizedBox(height: 30), |
| 28 | ], |
| 29 | ), |
| 30 | ); |
| 31 | } |
| 32 | } |