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

Show banner in tablet mode

This commit is contained in:
Pierre HUBERT 2021-12-30 13:45:22 +01:00
parent 94ae3434e4
commit 61e279f719

View File

@ -3,6 +3,7 @@ import 'package:comunic/ui/dialogs/screen_dialog.dart';
import 'package:comunic/ui/routes/main_route/main_route.dart'; import 'package:comunic/ui/routes/main_route/main_route.dart';
import 'package:comunic/ui/routes/main_route/page_info.dart'; import 'package:comunic/ui/routes/main_route/page_info.dart';
import 'package:comunic/ui/screens/newest_posts.dart'; import 'package:comunic/ui/screens/newest_posts.dart';
import 'package:comunic/ui/widgets/banner_widget.dart';
import 'package:comunic/ui/widgets/tablet_mode/calls/calls_area.dart'; import 'package:comunic/ui/widgets/tablet_mode/calls/calls_area.dart';
import 'package:comunic/ui/widgets/tablet_mode/conversations/conversations_area_widget.dart'; import 'package:comunic/ui/widgets/tablet_mode/conversations/conversations_area_widget.dart';
import 'package:comunic/ui/widgets/tablet_mode/current_user_panel.dart'; import 'package:comunic/ui/widgets/tablet_mode/current_user_panel.dart';
@ -79,7 +80,12 @@ class _TabletRouteState extends MainController {
Widget _buildRightPane() => Container( Widget _buildRightPane() => Container(
key: currentPage.key, key: currentPage.key,
width: MediaQuery.of(context).size.width - _SideBarSize, width: MediaQuery.of(context).size.width - _SideBarSize,
child: currentPage.child, child: Column(
children: [
BannerWidget(),
Expanded(child: currentPage.child),
],
),
); );
@override @override