1
1
import 'dart:math' ;
2
- import 'dart:typed_data' ;
3
2
4
3
import 'package:flame/camera.dart' ;
5
4
import 'package:flame/components.dart' ;
@@ -8,7 +7,7 @@ import 'package:flame/extensions.dart' show OffsetExtension;
8
7
import 'package:flame/game.dart' ;
9
8
import 'package:flame/geometry.dart' ;
10
9
import 'package:flame/input.dart' ;
11
- import 'package:flutter/painting .dart' ;
10
+ import 'package:flutter/widgets .dart' ;
12
11
13
12
class CameraComponentExample extends FlameGame with PanDetector {
14
13
static const description = '''
@@ -117,25 +116,13 @@ class Bezel extends PositionComponent {
117
116
const Radius .circular (5.0 ),
118
117
),
119
118
))
120
- .transform (
121
- Float64List .fromList (
122
- (Matrix4 .identity ()..rotateZ (pi / 4 )).storage,
123
- ),
124
- );
119
+ .transform ((Matrix4 .identity ()..rotateZ (pi / 4 )).storage);
125
120
connector = (Path ()
126
121
..addArc (Rect .fromLTRB (- outer, - outer, outer, outer), - 0.22 , 0.44 ))
127
- .transform (
128
- Float64List .fromList (
129
- (Matrix4 .identity ()..rotateZ (pi / 4 )).storage,
130
- ),
131
- );
122
+ .transform ((Matrix4 .identity ()..rotateZ (pi / 4 )).storage);
132
123
specularHighlight = (Path ()
133
124
..addOval (Rect .fromLTWH (- radius * 0.8 , - 8 , 16 , radius * 0.3 )))
134
- .transform (
135
- Float64List .fromList (
136
- (Matrix4 .identity ()..rotateZ (pi / 4 )).storage,
137
- ),
138
- );
125
+ .transform ((Matrix4 .identity ()..rotateZ (pi / 4 )).storage);
139
126
140
127
glassPaint = Paint ()..color = const Color (0x1400ffae );
141
128
rimBorderPaint = Paint ()
0 commit comments