We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Color
1 parent f322e51 commit 0132452Copy full SHA for 0132452
packages/backend/src/flutter/builderImpl/flutterColor.ts
@@ -238,7 +238,7 @@ export const flutterColor = (
238
: `Colors.white.withValues(alpha: ${opacityToAlpha(opacity)})`;
239
} else {
240
// Always use full 8-digit hex which includes alpha channel
241
- colorCode = `Color(0x${rgbTo8hex(color, opacity).toUpperCase()})`;
+ colorCode = `const Color(0x${rgbTo8hex(color, opacity).toUpperCase()})`;
242
}
243
244
// Add variable name as a comment if it exists
0 commit comments