Skip to content

Commit

Permalink
Removed useless commented out bits. Removed unecessary terinary for a…
Browse files Browse the repository at this point in the history
…ssigning postLocked value.
  • Loading branch information
ajsosa committed Aug 22, 2023
1 parent a43fd26 commit 32f8309
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions lib/community/widgets/post_card_view_comfortable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,7 @@ class PostCardViewComfortable extends StatelessWidget {
],
),
textScaleFactor: MediaQuery.of(context).textScaleFactor * textScaleFactor,
)
//]),
),
)),
Visibility(
visible: showTextContent && textContent.isNotEmpty,
child: Padding(
Expand Down
2 changes: 1 addition & 1 deletion lib/post/pages/post_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class _PostPageState extends State<PostPage> {
bool enableChangeSort = thunderState.postFabEnableChangeSort;
bool enableReplyToPost = thunderState.postFabEnableReplyToPost;

bool postLocked = widget.postView == null ? false : widget.postView!.postView.post.locked;
bool postLocked = widget.postView?.postView.post.locked == true;

PostFabAction singlePressAction = thunderState.postFabSinglePressAction;
PostFabAction longPressAction = thunderState.postFabLongPressAction;
Expand Down

0 comments on commit 32f8309

Please sign in to comment.