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: [