mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-11-01 01:18:38 +08:00 
			
		
		
		
	docs: Deprecate TapDetector in favour of TapCallbacks (#2886)
Deprecate `TapDetector` in favour of `TapCallbacks`
This commit is contained in:
		| @ -1,9 +1,9 @@ | ||||
| import 'package:flame/events.dart'; | ||||
| import 'package:flame/game.dart'; | ||||
| import 'package:flame/input.dart'; | ||||
| import 'package:flame/timer.dart'; | ||||
| import 'package:flutter/material.dart'; | ||||
|  | ||||
| class TimerExample extends FlameGame with TapDetector { | ||||
| class TimerExample extends FlameGame with TapCallbacks { | ||||
|   static const String description = ''' | ||||
|     This example shows how to use the `Timer`.\n\n | ||||
|     Tap down to start the countdown timer, it will then count to 5 and then stop | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Luan Nico
					Luan Nico