Skip to content

Commit 332518d

Browse files
author
Roi Peker
committed
Missed a <CR> as EOF in a some dart files, failing static analysis.
## [1.0.12] - Missed a <CR> as EOF in a some dart files, failing static analysis.
1 parent 9526b98 commit 332518d

26 files changed

Lines changed: 98 additions & 58 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
## [1.0.12]
2+
3+
- Missed a <CR> as EOF in a some dart files, failing static analysis.
4+
15
## [1.0.11]
6+
27
- remove private constructors to pass Dart's static analysis
38

49
## [1.0.10]

example/lib/demos/altitude_indicator/scene.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,10 @@ class AltitudIndicatorScene extends GSprite {
143143
/// center pivot in the drawn object.
144144
rotatorCircle.alignPivot();
145145

146-
var sky = buildBox(const Color(0xff3D84A9), innerCircleSize, innerCircleSize);
147-
var ground = buildBox(const Color(0xff493F42), innerCircleSize, innerCircleSize);
146+
var sky =
147+
buildBox(const Color(0xff3D84A9), innerCircleSize, innerCircleSize);
148+
var ground =
149+
buildBox(const Color(0xff493F42), innerCircleSize, innerCircleSize);
148150
var line = buildBox(kColorWhite, innerCircleSize, 2);
149151

150152
sky.alignPivot(Alignment.bottomCenter);

example/lib/demos/ball_line_collision/ball_line_collision.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ class BallVsLineMain extends StatelessWidget {
1717
decoration: const BoxDecoration(
1818
// color: Color.fromARGB(255, 176, 209, 234),
1919
gradient: LinearGradient(
20-
colors: [Color.fromARGB(255, 6, 4, 96), Color.fromARGB(255, 143, 212, 238)],
20+
colors: [
21+
Color.fromARGB(255, 6, 4, 96),
22+
Color.fromARGB(255, 143, 212, 238)
23+
],
2124
begin: Alignment.topCenter,
2225
end: Alignment.bottomCenter,
2326
),

example/lib/demos/breakout/scene/game_scene.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,8 @@ class BreakoutAtari extends GSprite {
285285
}
286286
}
287287

288-
for (var b in removeBricks) {
289-
bricks.remove(b);
288+
for (var b in removeBricks) {
289+
bricks.remove(b);
290290
}
291291
// removeBricks.forEach(bricks.remove);
292292
removeBricks.clear();

example/lib/demos/card_rotation/scene.dart

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class CardRotation3dScene extends GSprite {
1818
Future<void> initUi() async {
1919
var photoTexture =
2020
await ResourceLoader.loadTexture('assets/card_rotation/photo.png');
21-
var logoTexture = await ResourceLoader.loadTexture(
22-
'assets/card_rotation/mcdonalds.png');
21+
var logoTexture =
22+
await ResourceLoader.loadTexture('assets/card_rotation/mcdonalds.png');
2323

2424
var cardItem = GSprite();
2525
addChild(cardItem);
@@ -45,7 +45,7 @@ class CardRotation3dScene extends GSprite {
4545
.drawRoundRect(0, 0, 120, 120, 20)
4646
.endFill();
4747

48-
if(SystemUtils.usingSkia){
48+
if (SystemUtils.usingSkia) {
4949
var bmp = GBitmap(photoTexture);
5050
bmp.height = 120;
5151
bmp.scaleX = bmp.scaleY;
@@ -60,12 +60,6 @@ class CardRotation3dScene extends GSprite {
6060
image.x = -30;
6161
image.y = (144 - 120) / 2;
6262

63-
64-
65-
66-
67-
68-
6963
var logo = GSprite();
7064
cardItem.addChild(logo);
7165
logo.graphics

example/lib/demos/color_picker/color_picker.dart

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,17 @@ class ColorPickerMain extends StatelessWidget {
4848
children: [
4949
const SizedBox(width: 12),
5050
TextButton(
51-
child: const Text('graphx gist', style: TextStyle(fontSize: 12)),
52-
onPressed: () =>
53-
trace('https://gist.github.com/roipeker/6e7d5b30f6b022196bc98e2db14676a2'),
51+
child:
52+
const Text('graphx gist', style: TextStyle(fontSize: 12)),
53+
onPressed: () => trace(
54+
'https://gist.github.com/roipeker/6e7d5b30f6b022196bc98e2db14676a2'),
5455
),
5556
const VerticalDivider(),
5657
TextButton(
57-
child: const Text('original workshop', style: TextStyle(fontSize: 12)),
58-
onPressed: () => trace('https://www.youtube.com/watch?v=HURA4DKjA1c'),
58+
child: const Text('original workshop',
59+
style: TextStyle(fontSize: 12)),
60+
onPressed: () =>
61+
trace('https://www.youtube.com/watch?v=HURA4DKjA1c'),
5962
),
6063
],
6164
),

example/lib/demos/colorful_shaders/colorful_shaders_scene.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ColorfulShadersScene extends GSprite {
1818
@override
1919
Future<void> addedToStage() async {
2020
stage!.color = Colors.black;
21-
stage!.maskBounds = true ;
21+
stage!.maskBounds = true;
2222

2323
if (kIsWeb) {
2424
trace("This particular GLSL shader is not supported (currently) on web.");

example/lib/demos/drawing_pad_bezier/drawing_pad/point.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ class PadPoint {
2121
@override
2222
// ignore: avoid_equals_and_hash_code_on_mutable_classes
2323
bool operator ==(Object other) {
24-
return other is PadPoint && other.time == time && other.x == x && other.y == y;
24+
return other is PadPoint &&
25+
other.time == time &&
26+
other.x == x &&
27+
other.y == y;
2528
}
2629

2730
@override

example/lib/demos/drawing_pad_bezier/drawing_pad_bezier.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ class DrawingPadBezierMain extends StatelessWidget {
2222
),
2323
),
2424
),
25-
const Positioned(left: 0, right: 0, bottom: 0, child: PadSettings()),
25+
const Positioned(
26+
left: 0, right: 0, bottom: 0, child: PadSettings()),
2627
],
2728
),
2829
),

example/lib/demos/expander_fab_menu/expander_fab_menu.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,13 @@ class _MyMenuState extends State<MyMenu> with TickerProviderStateMixin {
9191
Expanded(child: widget.child!),
9292
Container(
9393
height: 60,
94-
decoration: const BoxDecoration(color: Colors.white, boxShadow: [
94+
decoration:
95+
const BoxDecoration(color: Colors.white, boxShadow: [
9596
BoxShadow(
96-
color: Colors.black38, blurRadius: 12, offset: Offset(0, -1), spreadRadius: 2)
97+
color: Colors.black38,
98+
blurRadius: 12,
99+
offset: Offset(0, -1),
100+
spreadRadius: 2)
97101
]),
98102
child: Row(
99103
mainAxisAlignment: MainAxisAlignment.spaceAround,

0 commit comments

Comments
 (0)