From b6ad19022d54b5fe2dcdccc2d6415013035478ff Mon Sep 17 00:00:00 2001 From: monsieurtanuki Date: Thu, 30 May 2024 11:37:24 +0200 Subject: [PATCH] chore: removed unused package percent_indicator (#5308) --- .../lib/generic_lib/widgets/smooth_gauge.dart | 43 ------------------- packages/smooth_app/pubspec.lock | 8 ---- packages/smooth_app/pubspec.yaml | 1 - 3 files changed, 52 deletions(-) delete mode 100644 packages/smooth_app/lib/generic_lib/widgets/smooth_gauge.dart diff --git a/packages/smooth_app/lib/generic_lib/widgets/smooth_gauge.dart b/packages/smooth_app/lib/generic_lib/widgets/smooth_gauge.dart deleted file mode 100644 index 95d6643461c6..000000000000 --- a/packages/smooth_app/lib/generic_lib/widgets/smooth_gauge.dart +++ /dev/null @@ -1,43 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:percent_indicator/percent_indicator.dart'; - -class SmoothGauge extends StatelessWidget { - const SmoothGauge({ - required this.value, - this.size = 80.0, - required this.color, - this.backgroundColor, - this.circular = true, - this.width = 100.0, - }); - - final double value; - final double size; - final Color color; - final Color? backgroundColor; - final bool circular; - final double width; - - @override - Widget build(BuildContext context) { - return circular - ? CircularPercentIndicator( - radius: size, - lineWidth: 5.0, - percent: value <= 1.0 ? value : 1.0, - center: Text( - '${(value * 100).floor()}%', - style: TextStyle(color: color), - ), - progressColor: color, - backgroundColor: backgroundColor ?? color.withAlpha(50), - circularStrokeCap: CircularStrokeCap.round, - ) - : LinearPercentIndicator( - width: width, - percent: value <= 1.0 ? value : 1.0, - progressColor: color, - backgroundColor: backgroundColor ?? color.withAlpha(50), - ); - } -} diff --git a/packages/smooth_app/pubspec.lock b/packages/smooth_app/pubspec.lock index d0d2778b9880..d2563ab864b4 100644 --- a/packages/smooth_app/pubspec.lock +++ b/packages/smooth_app/pubspec.lock @@ -1226,14 +1226,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.2.1" - percent_indicator: - dependency: "direct main" - description: - name: percent_indicator - sha256: c37099ad833a883c9d71782321cb65c3a848c21b6939b6185f0ff6640d05814c - url: "https://pub.dev" - source: hosted - version: "4.2.3" permission_handler: dependency: "direct main" description: diff --git a/packages/smooth_app/pubspec.yaml b/packages/smooth_app/pubspec.yaml index 062dd8007bd0..66e8ee50d268 100644 --- a/packages/smooth_app/pubspec.yaml +++ b/packages/smooth_app/pubspec.yaml @@ -47,7 +47,6 @@ dependencies: app_store_shared: path: ../app_store/shared audioplayers: 5.2.1 - percent_indicator: 4.2.3 flutter_email_sender: 6.0.3 flutter_native_splash: 2.4.0 image: 4.1.7