mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-10 12:54:38 +00:00
Add width constraints to desktop dashboard
This commit is contained in:
parent
02fe3c008f
commit
843db65603
1 changed files with 15 additions and 10 deletions
|
@ -109,19 +109,24 @@ 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: Navigator(
|
child: Center(
|
||||||
key: desktopKey,
|
child: ConstrainedBox(
|
||||||
initialRoute: Routes.desktop_actions,
|
constraints: BoxConstraints(maxWidth: 500),
|
||||||
onGenerateRoute: (settings) => Router.createRoute(settings),
|
child: Navigator(
|
||||||
onGenerateInitialRoutes: (NavigatorState navigator, String initialRouteName) {
|
key: desktopKey,
|
||||||
return [navigator.widget.onGenerateRoute!(RouteSettings(name: initialRouteName))!];
|
initialRoute: Routes.desktop_actions,
|
||||||
},
|
onGenerateRoute: (settings) => Router.createRoute(settings),
|
||||||
|
onGenerateInitialRoutes: (NavigatorState navigator, String initialRouteName) {
|
||||||
|
return [navigator.widget.onGenerateRoute!(RouteSettings(name: initialRouteName))!];
|
||||||
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue