From f98e603e82cfcb3a7c825e599f0c88ac99a5cb4a Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 1 Sep 2025 00:07:19 +0800 Subject: [PATCH] :bug: Dozens of bug fixes --- lib/widgets/post/post_shared.dart | 4 +++- lib/widgets/post/post_shuffle.dart | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/widgets/post/post_shared.dart b/lib/widgets/post/post_shared.dart index 7a2a1f45..c088da75 100644 --- a/lib/widgets/post/post_shared.dart +++ b/lib/widgets/post/post_shared.dart @@ -762,7 +762,9 @@ class PostBody extends ConsumerWidget { ).padding(bottom: 4), MarkdownTextContent( content: - item.isTruncated ? '${item.content!}...' : item.content!, + item.isTruncated + ? '${item.content!}...' + : item.content ?? '', isSelectable: isTextSelectable, ), if (translationSection != null) translationSection!, diff --git a/lib/widgets/post/post_shuffle.dart b/lib/widgets/post/post_shuffle.dart index c8ac3865..0d3d957f 100644 --- a/lib/widgets/post/post_shuffle.dart +++ b/lib/widgets/post/post_shuffle.dart @@ -25,7 +25,7 @@ class PostShuffleScreen extends HookConsumerWidget { return cardSwiperController.dispose; }, []); - const kBottomControlHeight = 64.0; + const kBottomControlHeight = 80.0; return AppScaffold( appBar: AppBar(title: const Text('postShuffle').tr()),