use_full_hex_values_for_flutter_colors

Group: style

Maturity: stable

Linter v0.1.80

Since info is static, may be stale
flutterpedantic

View all Lint Rules

Using the Linter

Prefer an 8-digit hexadecimal integer(0xFFFFFFFF) to instantiate Color. Colors have four 8-bit channels, which adds up to 32 bits, so Colors are described using a 32 bit integer.

BAD:

Color(1);
Color(0x000001);

GOOD:

Color(0x00000001);