mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 20:13:50 +08:00
feat: Expand flame_lint to respect required pub.dev checks (#3139)
Expand flame_lint to respect required pub.dev checks. We are currently losing pub points due to lint violations:  Turns out `flame_lint` does not respect lints/core which is being enforced now by pub. This adds that as a dependency on `flame_lint`, updates `flutter_lint` for the packages that use that, and fix all existing violations (luckily very few). This change will ensure that us and everyone else who uses `flame_lint` get all the points they deserve on pub. We can consider expanding to `lints/recommended` in the future, but that is definitely not a requirement at this stage (and a much bigger change).
This commit is contained in:
@ -57,19 +57,19 @@ class EmberQuestGame extends FlameGame
|
||||
void loadGameSegments(int segmentIndex, double xPositionOffset) {
|
||||
for (final block in segments[segmentIndex]) {
|
||||
final component = switch (block.blockType) {
|
||||
GroundBlock => GroundBlock(
|
||||
GroundBlock _ => GroundBlock(
|
||||
gridPosition: block.gridPosition,
|
||||
xOffset: xPositionOffset,
|
||||
),
|
||||
PlatformBlock => PlatformBlock(
|
||||
PlatformBlock _ => PlatformBlock(
|
||||
gridPosition: block.gridPosition,
|
||||
xOffset: xPositionOffset,
|
||||
),
|
||||
Star => Star(
|
||||
Star _ => Star(
|
||||
gridPosition: block.gridPosition,
|
||||
xOffset: xPositionOffset,
|
||||
),
|
||||
WaterEnemy => WaterEnemy(
|
||||
WaterEnemy _ => WaterEnemy(
|
||||
gridPosition: block.gridPosition,
|
||||
xOffset: xPositionOffset,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user