Skip to content

Commit a01e709

Browse files
authored
Merge pull request #7 from SplashByte/dev
fixes formatting issues
2 parents da31320 + b12ad32 commit a01e709

4 files changed

Lines changed: 22 additions & 27 deletions

File tree

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ packages:
148148
path: ".."
149149
relative: true
150150
source: path
151-
version: "0.3.1"
151+
version: "0.3.2"
152152
sdks:
153153
dart: ">=2.17.0 <3.0.0"
154154
flutter: ">=1.17.0"

lib/src/utils/clip.dart

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class DotClipper extends CustomClipper<Rect> {
1515
@override
1616
Rect getClip(Size size) {
1717
double radius = min(maxLoadingCircleSize,
18-
min(size.width, size.height) - 2 * loadingCirclePadding) /
19-
2 -
18+
min(size.width, size.height) - 2 * loadingCirclePadding) /
19+
2 -
2020
dotRadius;
2121
double x = size.width / 2;
2222
double y = size.height / 2;
@@ -56,9 +56,9 @@ class PathDotClipper extends CustomClipper<Path> {
5656
@override
5757
bool operator ==(Object other) =>
5858
identical(this, other) ||
59-
other is InvertedDotClipper &&
60-
runtimeType == other.runtimeType &&
61-
radiusFactor == other.radiusFactor;
59+
other is InvertedDotClipper &&
60+
runtimeType == other.runtimeType &&
61+
radiusFactor == other.radiusFactor;
6262

6363
@override
6464
int get hashCode => radiusFactor.hashCode;
@@ -87,10 +87,10 @@ class InvertedDotClipper extends CustomClipper<Path> {
8787
@override
8888
bool operator ==(Object other) =>
8989
identical(this, other) ||
90-
other is InvertedDotClipper &&
91-
runtimeType == other.runtimeType &&
92-
radiusFactor == other.radiusFactor;
90+
other is InvertedDotClipper &&
91+
runtimeType == other.runtimeType &&
92+
radiusFactor == other.radiusFactor;
9393

9494
@override
9595
int get hashCode => radiusFactor.hashCode;
96-
}
96+
}

lib/src/widgets/dot_widget_loading.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,10 @@ class _DotWidgetLoadingState extends LoadingWidgetState<DotWidgetLoading>
245245
: PathDotClipper(1.0 - _appearingAnimation.value),
246246
child: DecoratedBox(
247247
decoration: BoxDecoration(
248-
color: appearing ? Colors.transparent : dotColor.withOpacity(dotColor.opacity *
249-
(_appearingAnimation.value))),
248+
color: appearing
249+
? Colors.transparent
250+
: dotColor.withOpacity(dotColor.opacity *
251+
(_appearingAnimation.value))),
250252
child: child),
251253
),
252254
),

pubspec.lock

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ packages:
4242
name: collection
4343
url: "https://pub.dartlang.org"
4444
source: hosted
45-
version: "1.15.0"
45+
version: "1.16.0"
4646
fake_async:
4747
dependency: transitive
4848
description:
4949
name: fake_async
5050
url: "https://pub.dartlang.org"
5151
source: hosted
52-
version: "1.2.0"
52+
version: "1.3.0"
5353
flutter:
5454
dependency: "direct main"
5555
description: flutter
@@ -73,7 +73,7 @@ packages:
7373
name: material_color_utilities
7474
url: "https://pub.dartlang.org"
7575
source: hosted
76-
version: "0.1.3"
76+
version: "0.1.4"
7777
meta:
7878
dependency: transitive
7979
description:
@@ -87,7 +87,7 @@ packages:
8787
name: path
8888
url: "https://pub.dartlang.org"
8989
source: hosted
90-
version: "1.8.0"
90+
version: "1.8.1"
9191
sky_engine:
9292
dependency: transitive
9393
description: flutter
@@ -99,7 +99,7 @@ packages:
9999
name: source_span
100100
url: "https://pub.dartlang.org"
101101
source: hosted
102-
version: "1.8.1"
102+
version: "1.8.2"
103103
stack_trace:
104104
dependency: transitive
105105
description:
@@ -134,21 +134,14 @@ packages:
134134
name: test_api
135135
url: "https://pub.dartlang.org"
136136
source: hosted
137-
version: "0.4.8"
138-
typed_data:
139-
dependency: transitive
140-
description:
141-
name: typed_data
142-
url: "https://pub.dartlang.org"
143-
source: hosted
144-
version: "1.3.0"
137+
version: "0.4.9"
145138
vector_math:
146139
dependency: transitive
147140
description:
148141
name: vector_math
149142
url: "https://pub.dartlang.org"
150143
source: hosted
151-
version: "2.1.1"
144+
version: "2.1.2"
152145
sdks:
153-
dart: ">=2.14.0 <3.0.0"
146+
dart: ">=2.17.0-0 <3.0.0"
154147
flutter: ">=1.17.0"

0 commit comments

Comments
 (0)