mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-10-31 17:06:50 +08:00 
			
		
		
		
	fix: Update version of lints to comply with new pub requirements (#3223)
Update version of lints to comply with new pub requirements.
This commit is contained in:
		| @ -108,11 +108,14 @@ class _Chopper extends SpriteAnimationComponent | |||||||
|   } |   } | ||||||
|  |  | ||||||
|   @override |   @override | ||||||
|   void onCollisionStart(Set<Vector2> _, PositionComponent other) { |   void onCollisionStart( | ||||||
|  |     Set<Vector2> intersectionPoints, | ||||||
|  |     PositionComponent other, | ||||||
|  |   ) { | ||||||
|     if (other is _Chopper) { |     if (other is _Chopper) { | ||||||
|       game.timeScale = 0.25; |       game.timeScale = 0.25; | ||||||
|     } |     } | ||||||
|     super.onCollisionStart(_, other); |     super.onCollisionStart(intersectionPoints, other); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   @override |   @override | ||||||
|  | |||||||
| @ -59,7 +59,10 @@ class StepEngineExample extends FlameGame | |||||||
|   } |   } | ||||||
|  |  | ||||||
|   @override |   @override | ||||||
|   KeyEventResult onKeyEvent(_, Set<LogicalKeyboardKey> keysPressed) { |   KeyEventResult onKeyEvent( | ||||||
|  |     KeyEvent event, | ||||||
|  |     Set<LogicalKeyboardKey> keysPressed, | ||||||
|  |   ) { | ||||||
|     if (keysPressed.contains(LogicalKeyboardKey.keyP)) { |     if (keysPressed.contains(LogicalKeyboardKey.keyP)) { | ||||||
|       paused = !paused; |       paused = !paused; | ||||||
|     } else if (keysPressed.contains(LogicalKeyboardKey.keyS)) { |     } else if (keysPressed.contains(LogicalKeyboardKey.keyS)) { | ||||||
| @ -71,7 +74,7 @@ class StepEngineExample extends FlameGame | |||||||
|       _stepTimeMultiplier -= 1; |       _stepTimeMultiplier -= 1; | ||||||
|       _controlsText.text = _text; |       _controlsText.text = _text; | ||||||
|     } |     } | ||||||
|     return super.onKeyEvent(_, keysPressed); |     return super.onKeyEvent(event, keysPressed); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   // Creates the circle detectors. |   // Creates the circle detectors. | ||||||
| @ -128,14 +131,17 @@ class _DetectorComponents extends CircleComponent with CollisionCallbacks { | |||||||
|   }); |   }); | ||||||
|  |  | ||||||
|   @override |   @override | ||||||
|   void onCollisionStart(_, __) { |   void onCollisionStart( | ||||||
|  |     Set<Vector2> intersectionPoints, | ||||||
|  |     PositionComponent other, | ||||||
|  |   ) { | ||||||
|     paint.color = BasicPalette.black.color; |     paint.color = BasicPalette.black.color; | ||||||
|     super.onCollisionStart(_, __); |     super.onCollisionStart(intersectionPoints, other); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   @override |   @override | ||||||
|   void onCollisionEnd(__) { |   void onCollisionEnd(PositionComponent other) { | ||||||
|     paint.color = BasicPalette.white.color; |     paint.color = BasicPalette.white.color; | ||||||
|     super.onCollisionEnd(__); |     super.onCollisionEnd(other); | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  | |||||||
| @ -119,15 +119,15 @@ class JoystickComponent extends PositionComponent | |||||||
|   } |   } | ||||||
|  |  | ||||||
|   @override |   @override | ||||||
|   bool onDragEnd(_) { |   bool onDragEnd(DragEndEvent event) { | ||||||
|     super.onDragEnd(_); |     super.onDragEnd(event); | ||||||
|     onDragStop(); |     onDragStop(); | ||||||
|     return false; |     return false; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   @override |   @override | ||||||
|   bool onDragCancel(_) { |   bool onDragCancel(DragCancelEvent event) { | ||||||
|     super.onDragCancel(_); |     super.onDragCancel(event); | ||||||
|     onDragStop(); |     onDragStop(); | ||||||
|     return false; |     return false; | ||||||
|   } |   } | ||||||
|  | |||||||
| @ -15,6 +15,5 @@ dependencies: | |||||||
|  |  | ||||||
| dev_dependencies: | dev_dependencies: | ||||||
|   flame_lint: ^1.2.0 |   flame_lint: ^1.2.0 | ||||||
|   lints: ^3.0.0 |  | ||||||
|   mocktail: ^1.0.3 |   mocktail: ^1.0.3 | ||||||
|   test: any |   test: any | ||||||
|  | |||||||
| @ -14,7 +14,7 @@ environment: | |||||||
|   sdk: ">=3.4.0 <4.0.0" |   sdk: ">=3.4.0 <4.0.0" | ||||||
|  |  | ||||||
| dependencies: | dependencies: | ||||||
|   lints: ^3.0.0 |   lints: ^4.0.0 | ||||||
|  |  | ||||||
| dev_dependencies: | dev_dependencies: | ||||||
|   dartdoc: ^8.0.8 |   dartdoc: ^8.0.8 | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Luan Nico
					Luan Nico