From 6f03482cd88054ff4634bfa9036260d87d2bd251 Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 27 Oct 2022 11:50:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=86=E5=A4=87=E7=AC=AC=E4=B8=80=E6=AC=A1?= =?UTF-8?q?=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/views/home/index_page.dart | 2 +- lib/widgets/custom_easy_refresh.dart | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/views/home/index_page.dart b/lib/views/home/index_page.dart index f84437e..ab80425 100644 --- a/lib/views/home/index_page.dart +++ b/lib/views/home/index_page.dart @@ -27,7 +27,7 @@ class HomePage extends StatelessWidget { child: GetX( builder: (_) { return _.conversationList.isEmpty - ? CustomEasyRefresh.empty() + ? CustomEasyRefresh.empty(text: '') : ListView.separated( shrinkWrap: true, physics: const ClampingScrollPhysics(), diff --git a/lib/widgets/custom_easy_refresh.dart b/lib/widgets/custom_easy_refresh.dart index 96f38dd..8aa04e5 100644 --- a/lib/widgets/custom_easy_refresh.dart +++ b/lib/widgets/custom_easy_refresh.dart @@ -35,6 +35,7 @@ class CustomEasyRefresh { double size = 156.0, }) { return Column( + mainAxisSize: MainAxisSize.max, mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: [