diff --git a/CHANGELOG.md b/CHANGELOG.md index 8cebb59..22066d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,4 +35,8 @@ - Modify the formula to get the radius of CircularSeekBar -- Fix bug: Large barWidth with strokeCap round looks odd(#1) \ No newline at end of file +- Fix bug: Large barWidth with strokeCap round looks odd(#1) + +## 1.1.0+1 + +- Format dart code \ No newline at end of file diff --git a/lib/circular_seek_bar.dart b/lib/circular_seek_bar.dart index 97ddc27..7b0b832 100644 --- a/lib/circular_seek_bar.dart +++ b/lib/circular_seek_bar.dart @@ -437,10 +437,12 @@ class _SeekBarPainter extends CustomPainter { final Offset center = Offset(size.width / 2, size.height / 2); final double largerThumbWidth = - (outerThumbRadius / 2 + outerThumbStrokeWidth / 2) >= (innerThumbRadius / 2 + innerThumbStrokeWidth / 2) + (outerThumbRadius / 2 + outerThumbStrokeWidth / 2) >= + (innerThumbRadius / 2 + innerThumbStrokeWidth / 2) ? (outerThumbRadius / 2 + outerThumbStrokeWidth / 2) : (innerThumbRadius / 2 + innerThumbStrokeWidth / 2); - final double seekBarMargin = largerThumbWidth >= (barWidth / 2) ? largerThumbWidth : barWidth / 2; + final double seekBarMargin = + largerThumbWidth >= (barWidth / 2) ? largerThumbWidth : barWidth / 2; final double radius = min(center.dx, center.dy) - seekBarMargin; double realStartAngle = startAngle + angleOffset; @@ -458,7 +460,8 @@ class _SeekBarPainter extends CustomPainter { endAngle: sweepAngleRadian, tileMode: TileMode.mirror, colors: trackGradientColors, - transform: GradientRotation(startAngleWithOffsetRadian - asin((barWidth / 2) / radius)), + transform: GradientRotation( + startAngleWithOffsetRadian - asin((barWidth / 2) / radius)), ); trackPaint.shader = trackGradient.createShader(rect); } @@ -470,7 +473,8 @@ class _SeekBarPainter extends CustomPainter { endAngle: sweepAngleRadian, tileMode: TileMode.mirror, colors: progressGradientColors, - transform: GradientRotation(startAngleWithOffsetRadian - asin((barWidth / 2) / radius)), + transform: GradientRotation( + startAngleWithOffsetRadian - asin((barWidth / 2) / radius)), ); progressPaint.shader = progressGradient.createShader(rect); diff --git a/pubspec.yaml b/pubspec.yaml index b960067..057fb20 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: circular_seek_bar description: Circular progress/seek bar package for flutter that supports customizable animations, dashes, and gradients. -version: 1.1.0 +version: 1.1.0+1 repository: https://github.com/seosh817/Flutter_CircularSeekBar environment: