From 251fbb2503828446c1b61ef4bc6c25a268e0eedd Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 15 Feb 2025 13:34:23 +0800 Subject: [PATCH] :bug: Try to fix github action build error --- lib/screens/abuse_report.dart | 5 ++++- lib/screens/album.dart | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/screens/abuse_report.dart b/lib/screens/abuse_report.dart index 49746c4..098bbec 100644 --- a/lib/screens/abuse_report.dart +++ b/lib/screens/abuse_report.dart @@ -74,7 +74,10 @@ class _AbuseReportScreenState extends State { ), const Divider(height: 1), if (_isBusy) - const CircularProgressIndicator().padding(all: 24).center() + Padding( + padding: const EdgeInsets.all(24), + child: const CircularProgressIndicator(), + ).center() else Expanded( child: ListView.builder( diff --git a/lib/screens/album.dart b/lib/screens/album.dart index 6215e41..95aaa10 100644 --- a/lib/screens/album.dart +++ b/lib/screens/album.dart @@ -123,8 +123,10 @@ class _AlbumScreenState extends State { ), if (_isBusy) SliverToBoxAdapter( - child: - const CircularProgressIndicator().padding(all: 24).center(), + child: Padding( + padding: const EdgeInsets.all(24), + child: const CircularProgressIndicator(), + ).center(), ), ], ),