mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Show posts targets
This commit is contained in:
@ -16,11 +16,14 @@ import 'package:flutter/material.dart';
|
||||
|
||||
class PostsListWidget extends StatefulWidget {
|
||||
final Future<PostsList> Function() getPostsList;
|
||||
final bool showPostsTarget;
|
||||
|
||||
const PostsListWidget({
|
||||
Key key,
|
||||
@required this.getPostsList,
|
||||
@required this.showPostsTarget,
|
||||
}) : assert(getPostsList != null),
|
||||
assert(showPostsTarget != null),
|
||||
super(key: key);
|
||||
|
||||
@override
|
||||
@ -75,6 +78,7 @@ class _PostsListWidgetState extends State<PostsListWidget> {
|
||||
post: _list[i],
|
||||
usersInfo: _users,
|
||||
onDeletedPost: _removePost,
|
||||
showPostTarget: widget.showPostsTarget,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user