1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-10-23 15:03:22 +00:00
comunicmobile/lib/ui/routes/main_route/tablet_route.dart

42 lines
1.0 KiB
Dart
Raw Normal View History

2020-05-05 11:31:03 +00:00
import 'package:comunic/ui/routes/main_route/main_route.dart';
import 'package:flutter/material.dart';
/// Main tablet route
///
/// @author Pierre Hubert
class TabletRoute extends StatefulWidget implements MainRoute {
@override
_TabletRouteState createState() => _TabletRouteState();
}
class _TabletRouteState extends State<TabletRoute> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: _buildAppBar(),
body: _buildBody(),
);
}
Widget _buildAppBar() => AppBar(
title: Text("Comunic"),
actions: <Widget>[
IconButton(icon: Icon(Icons.notifications), onPressed: () {}),
IconButton(icon: Icon(Icons.message), onPressed: () {}),
PopupMenuButton(itemBuilder: (c) => []),
],
);
Widget _buildBody() => Row(
children: <Widget>[_buildLeftPane(), _buildRightPane()],
);
Widget _buildLeftPane() => Container(
width: 300,
color: Color(0xFF222D32),
);
Widget _buildRightPane() => Container();
}