From b12ad32d2fbe443bfd39219121c86f02ad1c4480 Mon Sep 17 00:00:00 2001 From: MaddinMade Date: Mon, 13 Jun 2022 13:07:12 +0200 Subject: [PATCH] fixes formatting issues --- example/pubspec.lock | 2 +- lib/src/utils/clip.dart | 18 +++++++++--------- lib/src/widgets/dot_widget_loading.dart | 6 ++++-- pubspec.lock | 23 ++++++++--------------- 4 files changed, 22 insertions(+), 27 deletions(-) diff --git a/example/pubspec.lock b/example/pubspec.lock index 97c31be..03f35f3 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -148,7 +148,7 @@ packages: path: ".." relative: true source: path - version: "0.3.1" + version: "0.3.2" sdks: dart: ">=2.17.0 <3.0.0" flutter: ">=1.17.0" diff --git a/lib/src/utils/clip.dart b/lib/src/utils/clip.dart index ca30ab1..e0b5aac 100644 --- a/lib/src/utils/clip.dart +++ b/lib/src/utils/clip.dart @@ -15,8 +15,8 @@ class DotClipper extends CustomClipper { @override Rect getClip(Size size) { double radius = min(maxLoadingCircleSize, - min(size.width, size.height) - 2 * loadingCirclePadding) / - 2 - + min(size.width, size.height) - 2 * loadingCirclePadding) / + 2 - dotRadius; double x = size.width / 2; double y = size.height / 2; @@ -56,9 +56,9 @@ class PathDotClipper extends CustomClipper { @override bool operator ==(Object other) => identical(this, other) || - other is InvertedDotClipper && - runtimeType == other.runtimeType && - radiusFactor == other.radiusFactor; + other is InvertedDotClipper && + runtimeType == other.runtimeType && + radiusFactor == other.radiusFactor; @override int get hashCode => radiusFactor.hashCode; @@ -87,10 +87,10 @@ class InvertedDotClipper extends CustomClipper { @override bool operator ==(Object other) => identical(this, other) || - other is InvertedDotClipper && - runtimeType == other.runtimeType && - radiusFactor == other.radiusFactor; + other is InvertedDotClipper && + runtimeType == other.runtimeType && + radiusFactor == other.radiusFactor; @override int get hashCode => radiusFactor.hashCode; -} \ No newline at end of file +} diff --git a/lib/src/widgets/dot_widget_loading.dart b/lib/src/widgets/dot_widget_loading.dart index cc46c9e..840b771 100644 --- a/lib/src/widgets/dot_widget_loading.dart +++ b/lib/src/widgets/dot_widget_loading.dart @@ -245,8 +245,10 @@ class _DotWidgetLoadingState extends LoadingWidgetState : PathDotClipper(1.0 - _appearingAnimation.value), child: DecoratedBox( decoration: BoxDecoration( - color: appearing ? Colors.transparent : dotColor.withOpacity(dotColor.opacity * - (_appearingAnimation.value))), + color: appearing + ? Colors.transparent + : dotColor.withOpacity(dotColor.opacity * + (_appearingAnimation.value))), child: child), ), ), diff --git a/pubspec.lock b/pubspec.lock index 1df6b69..26efb0f 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -42,14 +42,14 @@ packages: name: collection url: "https://pub.dartlang.org" source: hosted - version: "1.15.0" + version: "1.16.0" fake_async: dependency: transitive description: name: fake_async url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.3.0" flutter: dependency: "direct main" description: flutter @@ -73,7 +73,7 @@ packages: name: material_color_utilities url: "https://pub.dartlang.org" source: hosted - version: "0.1.3" + version: "0.1.4" meta: dependency: transitive description: @@ -87,7 +87,7 @@ packages: name: path url: "https://pub.dartlang.org" source: hosted - version: "1.8.0" + version: "1.8.1" sky_engine: dependency: transitive description: flutter @@ -99,7 +99,7 @@ packages: name: source_span url: "https://pub.dartlang.org" source: hosted - version: "1.8.1" + version: "1.8.2" stack_trace: dependency: transitive description: @@ -134,21 +134,14 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.4.8" - typed_data: - dependency: transitive - description: - name: typed_data - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.0" + version: "0.4.9" vector_math: dependency: transitive description: name: vector_math url: "https://pub.dartlang.org" source: hosted - version: "2.1.1" + version: "2.1.2" sdks: - dart: ">=2.14.0 <3.0.0" + dart: ">=2.17.0-0 <3.0.0" flutter: ">=1.17.0"