[skip ci] reformat desktop dashboard

This commit is contained in:
Godwin Asuquo 2023-02-08 21:57:26 +02:00
parent b1b8193043
commit 48ae156eb8

View file

@ -15,7 +15,6 @@ class DesktopDashboardView extends StatefulWidget {
}
class _DesktopDashboardViewState extends State<DesktopDashboardView> {
final page = PageController();
final sideMenu = SideMenuController();
@override
@ -29,7 +28,6 @@ class _DesktopDashboardViewState extends State<DesktopDashboardView> {
@override
Widget build(BuildContext context) {
return Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
@ -39,23 +37,18 @@ class _DesktopDashboardViewState extends State<DesktopDashboardView> {
iconPath: 'assets/images/wallet_outline.png',
priority: 0,
onTap: (page, _) => sideMenu.changePage(page),
),
],
bottomItems: [
SideMenuItem(
iconPath: 'assets/images/support_icon.png',
priority: 1,
onTap: (page, _)
=> sideMenu.changePage(page),
onTap: (page, _) => sideMenu.changePage(page),
),
SideMenuItem(
iconPath: 'assets/images/settings_outline.png',
priority: 2,
onTap: (page, _) =>
sideMenu.changePage(page)
,
onTap: (page, _) => sideMenu.changePage(page),
),
],
),
@ -105,9 +98,7 @@ class _DashboardPage extends StatelessWidget {
return Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(
flex: 3,
child: balancePage),
Expanded(flex: 3, child: balancePage),
Expanded(
flex: 5,
child: Navigator(