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

Show posts targets

This commit is contained in:
2019-05-23 18:37:56 +02:00
parent 14b6f17042
commit d62d23bd44
3 changed files with 20 additions and 1 deletions

View File

@ -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,
),
);
}