From 096fd42f22ee951bc3d6eca2f7550c4f1d35e126 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 11 May 2020 13:24:01 +0200 Subject: [PATCH] Start to display widgets --- lib/ui/routes/main_route/tablet_route.dart | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/ui/routes/main_route/tablet_route.dart b/lib/ui/routes/main_route/tablet_route.dart index 3c5209e..f4d3ea2 100644 --- a/lib/ui/routes/main_route/tablet_route.dart +++ b/lib/ui/routes/main_route/tablet_route.dart @@ -14,6 +14,8 @@ import 'package:flutter/material.dart'; /// /// @author Pierre Hubert +const _SideBarSize = 300.0; + class TabletRoute extends StatefulWidget implements MainRoute { const TabletRoute({Key key}) : super(key: key); @@ -56,7 +58,7 @@ class _TabletRouteState extends MainController { iconTheme: IconThemeData(color: Colors.white), ), child: Container( - width: 300, + width: _SideBarSize, color: Color(0xFF222D32), child: Column( children: [ @@ -70,7 +72,10 @@ class _TabletRouteState extends MainController { ), ); - Widget _buildRightPane() => Container(); + Widget _buildRightPane() => Container( + width: MediaQuery.of(context).size.width - _SideBarSize, + child: currentPage.child, + ); @override void pushPage(PageInfo page) {