Skip to content

Commit 1f554e4

Browse files
committed
fix: 首页空白屏显示错误
1 parent 6898575 commit 1f554e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/pages/home/view.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ class _HomePageState extends State<HomePage> {
2626
Widget _buildContent() {
2727
return Obx(
2828
() {
29-
if (c.resents.isEmpty && c.favorites.isEmpty) {
29+
if (c.resents.isEmpty &&
30+
c.favorites.values.every((element) => element.isEmpty)) {
3031
return Center(
3132
child: Column(
3233
mainAxisAlignment: MainAxisAlignment.center,

0 commit comments

Comments
 (0)