chore: Enable DCM rule double-literal-format (#3248)

Enable DCM rule double-literal-format.

More details
[here](https://dcm.dev/docs/rules/common/double-literal-format/). This
both forbids trailing zeroes and mandates leading zeroes.

If we would prefer a different style (e.g. prefer no leading zero
instead), just lmk :)
This commit is contained in:
Luan Nico
2024-07-30 11:17:27 -04:00
committed by GitHub
parent f7d956cb71
commit fabbf928d0
31 changed files with 81 additions and 77 deletions

View File

@ -4,7 +4,7 @@ import 'package:flutter/material.dart';
class Grass extends PositionComponent with Terrain {
static final _color = Paint()..color = const Color(0xff567d46);
static final _debugColor = Paint()..color = Colors.black.withOpacity(.5);
static final _debugColor = Paint()..color = Colors.black.withOpacity(0.5);
late final _rect = size.toRect();
late final _rect2 = Rect.fromCenter(