diff --git a/lib/pages/full_post/full_post.dart b/lib/pages/full_post/full_post.dart index 34ae6b0..4573cec 100644 --- a/lib/pages/full_post/full_post.dart +++ b/lib/pages/full_post/full_post.dart @@ -118,9 +118,9 @@ class _FullPostPage extends HookWidget { ?.jwt); } - final post = store.postView; + final postStore = store.postStore; - if (post == null) { + if (postStore == null) { return Scaffold( appBar: AppBar(), body: Center( @@ -132,6 +132,8 @@ class _FullPostPage extends HookWidget { ); } + final post = postStore.postView; + // VARIABLES sharePost() => share(post.post.apId, context: context); @@ -160,14 +162,14 @@ class _FullPostPage extends HookWidget { actions: [ IconButton(icon: Icon(shareIcon), onPressed: sharePost), Provider.value( - value: store.postStore!, + value: postStore, child: const SavePostButton(), ), IconButton( icon: Icon(moreIcon), onPressed: () => PostMoreMenuButton.show( context: context, - postStore: store.postStore!, + postStore: postStore, fullPostStore: store, ), ), @@ -186,7 +188,7 @@ class _FullPostPage extends HookWidget { physics: const AlwaysScrollableScrollPhysics(), children: [ const SizedBox(height: 15), - PostTile.fromPostStore(store.postStore!), + PostTile.fromPostStore(postStore), const CommentSection(), ], ),