Skip to content

Commit

Permalink
Merge pull request #246 from sliverappbar/chore
Browse files Browse the repository at this point in the history
chore: resolve Dart Analysis warnings
  • Loading branch information
violet-dev authored Oct 14, 2023
2 parents 61d9326 + 68ef0c8 commit 15d7966
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
4 changes: 2 additions & 2 deletions lib/downloader/isolate/core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ Future<void> _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;
}
Expand Down
33 changes: 18 additions & 15 deletions lib/pages/community/user_status_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -201,31 +201,34 @@ class _UserStatusCardState extends ThemeSwitchableState<UserStatusCard>
height: 48,
width: 48,
child: Stack(
alignment: Alignment.center,
children: <Widget>[
SizedBox(
height: 30,
width: 30,
child: CircularProgressIndicator(
valueColor:
AlwaysStoppedAnimation<Color>(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 {
Expand Down

0 comments on commit 15d7966

Please sign in to comment.