From 7dd91df47176764f90c18c6e4d374eb59486ee5d Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 16 Mar 2021 19:14:49 +0100 Subject: [PATCH] Improve groups page appearance --- .../screens/authorized_group_page_screen.dart | 38 ++++++++++--------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/lib/ui/screens/authorized_group_page_screen.dart b/lib/ui/screens/authorized_group_page_screen.dart index 0233acf..f000276 100644 --- a/lib/ui/screens/authorized_group_page_screen.dart +++ b/lib/ui/screens/authorized_group_page_screen.dart @@ -8,6 +8,7 @@ import 'package:comunic/ui/widgets/group_following_widget.dart'; import 'package:comunic/ui/widgets/group_icon_widget.dart'; import 'package:comunic/ui/widgets/group_membership_widget.dart'; import 'package:comunic/ui/widgets/like_widget.dart'; +import 'package:comunic/ui/widgets/post_container_widget.dart'; import 'package:comunic/ui/widgets/safe_state.dart'; import 'package:comunic/utils/intl_utils.dart'; import 'package:flutter/material.dart'; @@ -86,23 +87,25 @@ class _AuthorizedGroupPageScreenState @override Widget build(BuildContext context) { - return Column( - children: [ - _buildGroupPageHeader(), - Container( - color: _headerColor, - child: TabBar( - tabs: _tabs.map((e) => e.tab).toList(), - controller: _tabController, + return PostContainer( + child: Column( + children: [ + _buildGroupPageHeader(), + Container( + color: _headerColor, + child: TabBar( + tabs: _tabs.map((e) => e.tab).toList(), + controller: _tabController, + ), ), - ), - Expanded( - child: TabBarView( - controller: _tabController, - children: _tabs.map((e) => e.widget).toList(), + Expanded( + child: TabBarView( + controller: _tabController, + children: _tabs.map((e) => e.widget).toList(), + ), ), - ), - ], + ], + ), ); } @@ -156,8 +159,9 @@ class _AuthorizedGroupPageScreenState _group.isAdmin ? IconButton( icon: Icon(Icons.settings, color: _headerTextColor), - onPressed: () => MainController.of(context) - .push(GroupSettingsScreen(groupID: _group.id))) + onPressed: () => MainController.of(context).push( + GroupSettingsScreen(groupID: _group.id), + canShowAsDialog: true)) : Container(), ], ),