diff --git a/lib/downloader/isolate/core.dart b/lib/downloader/isolate/core.dart index c3f4db95c..17a21bbb2 100644 --- a/lib/downloader/isolate/core.dart +++ b/lib/downloader/isolate/core.dart @@ -215,8 +215,8 @@ Future _processTask(IsolateDownloaderTask task) async { await Future.delayed(const Duration(milliseconds: 100)); } catch (e) { - if (!(e is DioError && - e.type == DioErrorType.connectionError && + if (!(e is DioException && + e.type == DioExceptionType.connectionError && e.message!.contains('Connection reset by peer'))) { rethrow; } diff --git a/lib/pages/community/user_status_card.dart b/lib/pages/community/user_status_card.dart index 5ad7ea407..709c3fe35 100644 --- a/lib/pages/community/user_status_card.dart +++ b/lib/pages/community/user_status_card.dart @@ -201,31 +201,34 @@ class _UserStatusCardState extends ThemeSwitchableState height: 48, width: 48, child: Stack( - alignment: Alignment.center, - children: [ - SizedBox( - height: 30, - width: 30, - child: CircularProgressIndicator( - valueColor: - AlwaysStoppedAnimation(Colors.grey), - )) - ])) + alignment: Alignment.center, + children: [ + SizedBox( + height: 30, + width: 30, + child: CircularProgressIndicator( + valueColor: AlwaysStoppedAnimation(Colors.grey), + ), + ), + ], + ), + ) : InkWell( customBorder: const RoundedRectangleBorder( borderRadius: BorderRadius.only( topRight: Radius.circular(10.0), bottomRight: Radius.circular(10.0)), ), - child: Align( + child: const Align( alignment: Alignment.center, child: badges.Badge( showBadge: false, - badgeContent: const Text('N', - style: - TextStyle(color: Colors.white, fontSize: 12.0)), + badgeContent: Text( + 'N', + style: TextStyle(color: Colors.white, fontSize: 12.0), + ), // badgeColor: Settings.majorAccentColor, - child: const Icon(MdiIcons.cloudUpload, size: 30), + child: Icon(MdiIcons.cloudUpload, size: 30), ), ), onTap: () async {