Add width constraints to desktop dashboard

This commit is contained in:
OmarHatem 2023-02-15 01:28:10 +02:00
parent 02fe3c008f
commit 843db65603

View file

@ -109,12 +109,15 @@ class DesktopDashboardPage extends BasePage {
return Row( return Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Expanded( Container(
flex: 3, width: 400,
child: balancePage, child: balancePage,
), ),
Expanded( Expanded(
flex: 5, flex: 4,
child: Center(
child: ConstrainedBox(
constraints: BoxConstraints(maxWidth: 500),
child: Navigator( child: Navigator(
key: desktopKey, key: desktopKey,
initialRoute: Routes.desktop_actions, initialRoute: Routes.desktop_actions,
@ -124,6 +127,8 @@ class DesktopDashboardPage extends BasePage {
}, },
), ),
), ),
),
),
], ],
); );
} }