diff --git a/.fvmrc b/.fvmrc index bf47b4e32..8d93ee5c9 100644 --- a/.fvmrc +++ b/.fvmrc @@ -1,3 +1,3 @@ { - "flutter": "3.41.4" + "flutter": "3.41.5" } \ No newline at end of file diff --git a/lib/common/widgets/image_viewer/loading_indicator.dart b/lib/common/widgets/image_viewer/loading_indicator.dart index e2516bd3d..6cedb908e 100644 --- a/lib/common/widgets/image_viewer/loading_indicator.dart +++ b/lib/common/widgets/image_viewer/loading_indicator.dart @@ -15,7 +15,6 @@ * along with PiliPlus. If not, see . */ -import 'dart:io' show Platform; import 'dart:math' show pi; import 'package:flutter/material.dart'; @@ -95,53 +94,29 @@ class RenderLoadingIndicator extends RenderBox { final radius = size.width / 2 - strokeWidth; final center = size.center(.zero); - // TODO: remove - // https://github.com/flutter/flutter/issues/182708 - // https://github.com/flutter/flutter/issues/183083 - if (Platform.isIOS) { - context.canvas - ..drawCircle( - center, - radius, - paint..color = Colors.white, - ) - ..drawCircle( - center, - radius - strokeWidth, - paint..color = const Color(0x80000000), - ) - ..drawArc( - Rect.fromCircle(center: center, radius: radius - padding), - startAngle, - progress * 2 * pi, - true, - paint..color = Colors.white, - ); - } else { - context.canvas - ..drawCircle( - center, - radius, - paint - ..style = .fill - ..color = const Color(0x80000000), - ) - ..drawCircle( - center, - radius, - paint - ..style = .stroke - ..strokeWidth = strokeWidth - ..color = Colors.white, - ) - ..drawArc( - Rect.fromCircle(center: center, radius: radius - padding), - startAngle, - progress * 2 * pi, - true, - paint..style = .fill, - ); - } + context.canvas + ..drawCircle( + center, + radius, + paint + ..style = .fill + ..color = const Color(0x80000000), + ) + ..drawCircle( + center, + radius, + paint + ..style = .stroke + ..strokeWidth = strokeWidth + ..color = Colors.white, + ) + ..drawArc( + Rect.fromCircle(center: center, radius: radius - padding), + startAngle, + progress * 2 * pi, + true, + paint..style = .fill, + ); } @override diff --git a/pubspec.yaml b/pubspec.yaml index e2e8c6d88..1e9ef769e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -21,7 +21,7 @@ version: 2.0.1+1 environment: sdk: ">=3.10.0" - flutter: 3.41.4 # update `.fvmrc` config + flutter: 3.41.5 # update `.fvmrc` config # Dependencies specify other packages that your package needs in order to work. # To automatically upgrade your package dependencies to the latest versions