1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 21:09:21 +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_icon_widget.dart';
import 'package:comunic/ui/widgets/group_membership_widget.dart'; import 'package:comunic/ui/widgets/group_membership_widget.dart';
import 'package:comunic/ui/widgets/like_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/ui/widgets/safe_state.dart';
import 'package:comunic/utils/intl_utils.dart'; import 'package:comunic/utils/intl_utils.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -86,7 +87,8 @@ class _AuthorizedGroupPageScreenState
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Column( return PostContainer(
child: Column(
children: [ children: [
_buildGroupPageHeader(), _buildGroupPageHeader(),
Container( Container(
@ -103,6 +105,7 @@ class _AuthorizedGroupPageScreenState
), ),
), ),
], ],
),
); );
} }
@ -156,8 +159,9 @@ class _AuthorizedGroupPageScreenState
_group.isAdmin _group.isAdmin
? IconButton( ? IconButton(
icon: Icon(Icons.settings, color: _headerTextColor), icon: Icon(Icons.settings, color: _headerTextColor),
onPressed: () => MainController.of(context) onPressed: () => MainController.of(context).push(
.push(GroupSettingsScreen(groupID: _group.id))) GroupSettingsScreen(groupID: _group.id),
canShowAsDialog: true))
: Container(), : Container(),
], ],
), ),