diff --git a/lib/pages/detail/view.dart b/lib/pages/detail/view.dart index 1b18711e..43b7e722 100644 --- a/lib/pages/detail/view.dart +++ b/lib/pages/detail/view.dart @@ -97,7 +97,7 @@ class _DetailPageState extends State { snap: false, primary: true, title: DetailAppbarTitle( - c.isLoading.value ? '' : c.detail!.title, + c.detail?.title ?? '', controller: c.scrollController, ), flexibleSpace: const DetailAppbarflexibleSpace(), @@ -188,7 +188,7 @@ class _DetailPageState extends State { ); } - if (c.detail == null) { + if (c.isLoading.value) { return const Center( child: ProgressRing(), ); @@ -255,7 +255,7 @@ class _DetailPageState extends State { constraints: const BoxConstraints( maxHeight: 100, ), - child: SelectableText(c.detail!.desc!), + child: SelectableText(c.detail!.desc ?? ''), ), const SizedBox(height: 16), Row(