1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-21 17:25:16 +00:00

Fix refresh issue

This commit is contained in:
2022-03-12 10:13:32 +01:00
parent 0bd7426813
commit 56c5eb335b
4 changed files with 25 additions and 10 deletions

View File

@ -38,6 +38,8 @@ class UserPageTablet extends StatefulWidget {
}
class _UserPageTabletState extends State<UserPageTablet> {
final _formKey = GlobalKey<PostCreateFormWidgetState>();
AdvancedUserInfo get _userInfo => widget.userInfo;
bool get _isCurrentUser => _userInfo.id == userID();
@ -70,6 +72,7 @@ class _UserPageTabletState extends State<UserPageTablet> {
topWidgets: [
_userInfo.canPostTexts
? PostCreateFormWidget(
key: _formKey,
postTarget: PostTarget.USER_PAGE,
targetID: _userInfo.id,
onCreated: widget.onNeedRefresh,