File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ class BlobClipper extends CustomClipper<Path> {
9
9
final int minGrowth;
10
10
BlobClipper ({
11
11
this .id,
12
- this .edgesCount = BlobConfig .edgesCount as int ,
13
- this .minGrowth = BlobConfig .minGrowth as int ,
12
+ this .edgesCount = BlobConfig .edgesCount,
13
+ this .minGrowth = BlobConfig .minGrowth,
14
14
});
15
15
16
16
@override
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import 'package:flutter/material.dart';
4
4
class BlobConfig {
5
5
static const Color color = Color (0xff3c40c6 );
6
6
static const BlobFillType fillType = BlobFillType .fill;
7
- static const num edgesCount = 6 ;
8
- static const num minGrowth = 6 ;
9
- static const num animDurationMs = 500 ;
7
+ static const int edgesCount = 6 ;
8
+ static const int minGrowth = 6 ;
9
+ static const int animDurationMs = 500 ;
10
10
static const int strokeWidth = 3 ;
11
11
}
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ class Blob extends StatefulWidget {
25
25
26
26
Blob .random ({
27
27
required this .size,
28
- this .edgesCount = BlobConfig .edgesCount as int ? ,
29
- this .minGrowth = BlobConfig .minGrowth as int ? ,
28
+ this .edgesCount = BlobConfig .edgesCount,
29
+ this .minGrowth = BlobConfig .minGrowth,
30
30
this .debug = false ,
31
31
this .styles,
32
32
this .controller,
@@ -37,12 +37,12 @@ class Blob extends StatefulWidget {
37
37
isAnimated = false ;
38
38
Blob .animatedRandom ({
39
39
required this .size,
40
- this .edgesCount = BlobConfig .edgesCount as int ? ,
41
- this .minGrowth = BlobConfig .minGrowth as int ? ,
40
+ this .edgesCount = BlobConfig .edgesCount,
41
+ this .minGrowth = BlobConfig .minGrowth,
42
42
this .debug = false ,
43
43
this .styles,
44
44
this .duration = const Duration (
45
- milliseconds: BlobConfig .animDurationMs as int ,
45
+ milliseconds: BlobConfig .animDurationMs,
46
46
),
47
47
this .loop = false ,
48
48
this .controller,
@@ -69,7 +69,7 @@ class Blob extends StatefulWidget {
69
69
this .debug = false ,
70
70
this .styles,
71
71
this .duration = const Duration (
72
- milliseconds: BlobConfig .animDurationMs as int ,
72
+ milliseconds: BlobConfig .animDurationMs,
73
73
),
74
74
this .loop = false ,
75
75
this .controller,
You can’t perform that action at this time.
0 commit comments