Merge pull request #726 from ijashuzain/feat/variables-dart-export

M6: export variables as Dart constants for Flutter
This commit is contained in:
BFlat
2026-10-27 00:53:10 +07:00
committed by GitHub
8 changed files with 235 additions and 9 deletions
+2 -1
View File
@@ -1236,7 +1236,8 @@ fn swift_layer(ctx: &Ctx, n: &Node, depth: usize, out: &mut String, extra: &[Str
// ------------------------------------------------------------------ Jetpack Compose
fn kotlin_color(c: Color) -> String {
/// `Color(0xAARRGGBB)`, as Compose and Flutter both write a colour.
pub(crate) fn kotlin_color(c: Color) -> String {
let [r, g, b, a] = c.to_rgba8();
format!("Color(0x{a:02X}{r:02X}{g:02X}{b:02X})")
}