mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 04:18:25 +08:00
Transforming PaletteEntry#paint into a full method and adding more colors to BasicPalette (#725)
* Transforming PaletteEntry#paint into a full method * Fixing some errors that went unoticed * Update packages/flame/CHANGELOG.md Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net> * Update packages/flame/CHANGELOG.md Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net> * followup * format Co-authored-by: Jochum van der Ploeg <jochum@vdploeg.net>
This commit is contained in:
@ -7,7 +7,7 @@ import 'package:flutter/material.dart';
|
||||
/// Showcases how to mix two advanced detectors
|
||||
class MultitapAdvancedGame extends BaseGame
|
||||
with MultiTouchTapDetector, MultiTouchDragDetector {
|
||||
static final whitePaint = BasicPalette.white.paint;
|
||||
static final whitePaint = BasicPalette.white.paint();
|
||||
static final tapSize = Vector2.all(50);
|
||||
|
||||
final Map<int, Rect> taps = {};
|
||||
|
||||
Reference in New Issue
Block a user