mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 08:15:16 +00:00
Display user posts
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
import 'package:comunic/helpers/posts_helper.dart';
|
||||
import 'package:comunic/helpers/users_helper.dart';
|
||||
import 'package:comunic/models/advanced_user_info.dart';
|
||||
import 'package:comunic/ui/widgets/network_image_widget.dart';
|
||||
import 'package:comunic/ui/widgets/posts_list_widget.dart';
|
||||
import 'package:comunic/utils/intl_utils.dart';
|
||||
import 'package:comunic/utils/ui_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@ -25,6 +27,7 @@ class UserPageRoute extends StatefulWidget {
|
||||
class _UserPageRouteState extends State<UserPageRoute> {
|
||||
// Helpers
|
||||
final usersHelper = UsersHelper();
|
||||
final PostsHelper _postsHelper = PostsHelper();
|
||||
|
||||
// Objects members
|
||||
final double _appBarHeight = 256.0;
|
||||
@ -132,7 +135,15 @@ class _UserPageRouteState extends State<UserPageRoute> {
|
||||
|
||||
Widget _buildBody() {
|
||||
return SliverList(
|
||||
delegate: SliverChildListDelegate(<Widget>[]),
|
||||
delegate: SliverChildListDelegate(
|
||||
<Widget>[
|
||||
PostsListWidget(
|
||||
getPostsList: () => _postsHelper.getUserPosts(widget.userID),
|
||||
showPostsTarget: false,
|
||||
buildListView: false,
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user