Skip to content

Instantly share code, notes, and snippets.

@Bryanx
Last active April 3, 2020 10:12
Show Gist options
  • Save Bryanx/8924d0ffc0bc9cf390978971452db0bd to your computer and use it in GitHub Desktop.
Save Bryanx/8924d0ffc0bc9cf390978971452db0bd to your computer and use it in GitHub Desktop.
Sip custom formats for Dart/Flutter
{
"menuFormat" : {
"x" : "Color.fromARGB(",
"function" : "concat",
"y" : {
"x" : {
"x" : {
"x" : "[alpha]",
"function" : "mul",
"y" : 255
},
"function" : "round",
"y" : 0
},
"function" : "concat",
"y" : {
"x" : ", ",
"function" : "concat",
"y" : {
"x" : {
"x" : {
"x" : "[red]",
"function" : "mul",
"y" : 255
},
"function" : "round",
"y" : 0
},
"function" : "concat",
"y" : {
"x" : ", ",
"function" : "concat",
"y" : {
"x" : {
"x" : {
"x" : "[green]",
"function" : "mul",
"y" : 255
},
"function" : "round",
"y" : 0
},
"function" : "concat",
"y" : {
"x" : ", ",
"function" : "concat",
"y" : {
"x" : {
"x" : {
"x" : "[blue]",
"function" : "mul",
"y" : 255
},
"function" : "round",
"y" : 0
},
"function" : "concat",
"y" : ")"
}
}
}
}
}
}
}
},
"name" : "Dart ARGB",
"pickerFormat" : {
"y" : {
"x" : ", ",
"function" : "concat",
"y" : {
"x" : {
"x" : {
"x" : "[green]",
"function" : "mul",
"y" : 255
},
"function" : "round",
"y" : 0
},
"function" : "concat",
"y" : {
"x" : ", ",
"function" : "concat",
"y" : {
"x" : {
"x" : "[blue]",
"function" : "mul",
"y" : 255
},
"function" : "round",
"y" : 0
}
}
}
},
"x" : {
"x" : {
"x" : "[red]",
"function" : "mul",
"y" : 255
},
"function" : "round",
"y" : 0
},
"function" : "concat"
},
"sip" : {
"version" : "2.2.5",
"build" : "225"
},
"clipboardFormat" : {
"function" : "concat",
"x" : "Color.fromARGB(",
"y" : {
"x" : {
"x" : {
"x" : "[alpha]",
"function" : "mul",
"y" : 255
},
"function" : "round",
"y" : 0
},
"function" : "concat",
"y" : {
"x" : ", ",
"function" : "concat",
"y" : {
"x" : {
"x" : {
"x" : "[red]",
"function" : "mul",
"y" : 255
},
"function" : "round",
"y" : 0
},
"function" : "concat",
"y" : {
"x" : ", ",
"function" : "concat",
"y" : {
"x" : {
"x" : {
"x" : "[green]",
"function" : "mul",
"y" : 255
},
"function" : "round",
"y" : 0
},
"function" : "concat",
"y" : {
"x" : ", ",
"function" : "concat",
"y" : {
"x" : {
"x" : {
"x" : "[blue]",
"function" : "mul",
"y" : 255
},
"function" : "round",
"y" : 0
},
"function" : "concat",
"y" : ")"
}
}
}
}
}
}
}
}
}
{
"name" : "Dart Hex",
"menuFormat" : {
"x" : "#hex[red]hex[green]hex[blue]",
"function" : "lower"
},
"pickerFormat" : {
"x" : "#hex[red]hex[green]hex[blue]",
"function" : "lower"
},
"clipboardFormat" : {
"function" : "concat",
"x" : "Color(0xFF",
"y" : {
"x" : {
"x" : "hex[red]hex[green]hex[blue]",
"function" : "upper"
},
"function" : "concat",
"y" : ")"
}
},
"sip" : {
"version" : "2.2.5",
"build" : "225"
}
}
{
"menuFormat" : {
"function" : "concat",
"x" : "Color.fromARGB(",
"y" : {
"x" : {
"x" : {
"x" : "[alpha]",
"function" : "mul",
"y" : 255
},
"function" : "round",
"y" : 0
},
"function" : "concat",
"y" : {
"x" : ", ",
"function" : "concat",
"y" : {
"x" : {
"x" : {
"x" : "[red]",
"function" : "mul",
"y" : 255
},
"function" : "round",
"y" : 0
},
"function" : "concat",
"y" : {
"x" : ", ",
"function" : "concat",
"y" : {
"x" : {
"x" : {
"x" : "[green]",
"function" : "mul",
"y" : 255
},
"function" : "round",
"y" : 0
},
"function" : "concat",
"y" : {
"x" : ", ",
"function" : "concat",
"y" : {
"x" : {
"x" : {
"x" : "[blue]",
"function" : "mul",
"y" : 255
},
"function" : "round",
"y" : 0
},
"function" : "concat",
"y" : ")"
}
}
}
}
}
}
}
},
"name" : "Dart RGBO",
"clipboardFormat" : {
"y" : {
"x" : {
"x" : {
"x" : "[red]",
"function" : "mul",
"y" : 255
},
"function" : "round",
"y" : 0
},
"function" : "concat",
"y" : {
"x" : ", ",
"function" : "concat",
"y" : {
"x" : {
"x" : {
"x" : "[green]",
"function" : "mul",
"y" : 255
},
"function" : "round",
"y" : 0
},
"function" : "concat",
"y" : {
"x" : ", ",
"function" : "concat",
"y" : {
"x" : {
"x" : {
"x" : "[blue]",
"function" : "mul",
"y" : 255
},
"function" : "round",
"y" : 0
},
"function" : "concat",
"y" : {
"x" : ", ",
"function" : "concat",
"y" : {
"x" : {
"x" : {
"x" : "[alpha]",
"function" : "mul",
"y" : 1
},
"function" : "round",
"y" : 0
},
"function" : "concat",
"y" : ")"
}
}
}
}
}
}
},
"function" : "concat",
"x" : "Color.fromRGBO("
},
"sip" : {
"version" : "2.2.5",
"build" : "225"
},
"pickerFormat" : {
"function" : "concat",
"y" : {
"x" : ", ",
"function" : "concat",
"y" : {
"x" : {
"x" : {
"x" : "[green]",
"function" : "mul",
"y" : 255
},
"function" : "round",
"y" : 0
},
"function" : "concat",
"y" : {
"x" : ", ",
"function" : "concat",
"y" : {
"x" : {
"x" : "[blue]",
"function" : "mul",
"y" : 255
},
"function" : "round",
"y" : 0
}
}
}
},
"x" : {
"x" : {
"x" : "[red]",
"function" : "mul",
"y" : 255
},
"function" : "round",
"y" : 0
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment