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:
parent
cc73782da9
commit
7dd91df471
@ -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,23 +87,25 @@ class _AuthorizedGroupPageScreenState
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Column(
|
return PostContainer(
|
||||||
children: [
|
child: Column(
|
||||||
_buildGroupPageHeader(),
|
children: [
|
||||||
Container(
|
_buildGroupPageHeader(),
|
||||||
color: _headerColor,
|
Container(
|
||||||
child: TabBar(
|
color: _headerColor,
|
||||||
tabs: _tabs.map((e) => e.tab).toList(),
|
child: TabBar(
|
||||||
controller: _tabController,
|
tabs: _tabs.map((e) => e.tab).toList(),
|
||||||
|
controller: _tabController,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
Expanded(
|
||||||
Expanded(
|
child: TabBarView(
|
||||||
child: TabBarView(
|
controller: _tabController,
|
||||||
controller: _tabController,
|
children: _tabs.map((e) => e.widget).toList(),
|
||||||
children: _tabs.map((e) => e.widget).toList(),
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -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(),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user