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) {