1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-12-27 21:38:51 +00:00

Improve groups page appearance

This commit is contained in:
Pierre HUBERT 2021-03-16 19:14:49 +01:00
parent cc73782da9
commit 7dd91df471

View File

@ -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(),
],
),