1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 21:09:21 +00:00

Start to display widgets

This commit is contained in:
Pierre HUBERT 2020-05-11 13:24:01 +02:00
parent 27a56ae533
commit 096fd42f22

View File

@ -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: <Widget>[
@ -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) {