mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 12:14:11 +00:00 
			
		
		
		
	Start to display widgets
This commit is contained in:
		@@ -14,6 +14,8 @@ import 'package:flutter/material.dart';
 | 
				
			|||||||
///
 | 
					///
 | 
				
			||||||
/// @author Pierre Hubert
 | 
					/// @author Pierre Hubert
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const _SideBarSize = 300.0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class TabletRoute extends StatefulWidget implements MainRoute {
 | 
					class TabletRoute extends StatefulWidget implements MainRoute {
 | 
				
			||||||
  const TabletRoute({Key key}) : super(key: key);
 | 
					  const TabletRoute({Key key}) : super(key: key);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -56,7 +58,7 @@ class _TabletRouteState extends MainController {
 | 
				
			|||||||
          iconTheme: IconThemeData(color: Colors.white),
 | 
					          iconTheme: IconThemeData(color: Colors.white),
 | 
				
			||||||
        ),
 | 
					        ),
 | 
				
			||||||
        child: Container(
 | 
					        child: Container(
 | 
				
			||||||
          width: 300,
 | 
					          width: _SideBarSize,
 | 
				
			||||||
          color: Color(0xFF222D32),
 | 
					          color: Color(0xFF222D32),
 | 
				
			||||||
          child: Column(
 | 
					          child: Column(
 | 
				
			||||||
            children: <Widget>[
 | 
					            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
 | 
					  @override
 | 
				
			||||||
  void pushPage(PageInfo page) {
 | 
					  void pushPage(PageInfo page) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user