1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 08:15:16 +00:00

Can click on user account image for posts to open user page

This commit is contained in:
2019-06-15 08:27:20 +02:00
parent f26e6139cd
commit 972cee0a18
2 changed files with 17 additions and 1 deletions

View File

@ -20,15 +20,18 @@ class PostsListWidget extends StatefulWidget {
final Future<PostsList> Function() getPostsList;
final bool showPostsTarget;
final bool buildListView;
final bool userNamesClickable;
const PostsListWidget({
Key key,
@required this.getPostsList,
@required this.showPostsTarget,
this.userNamesClickable = true,
this.buildListView = true,
}) : assert(getPostsList != null),
assert(showPostsTarget != null),
assert(buildListView != null),
assert(userNamesClickable != null),
super(key: key);
@override
@ -106,6 +109,7 @@ class _PostsListWidgetState extends State<PostsListWidget> {
groupsInfo: _groups,
onDeletedPost: _removePost,
showPostTarget: widget.showPostsTarget,
userNamesClickable: widget.userNamesClickable,
);
}