Skip to content

Instantly share code, notes, and snippets.

@fredgrott
Last active September 21, 2025 18:50
Show Gist options
  • Save fredgrott/dba02688c484471f50efbf7039a4b4b9 to your computer and use it in GitHub Desktop.
Save fredgrott/dba02688c484471f50efbf7039a4b4b9 to your computer and use it in GitHub Desktop.
MaterialSymbolsBase.setOutlinedVariationDefaults(
color: Colors.red,
fill: 1,
weight: 300,
grade: 0,
opticalSize: 40.0);
MaterialSymbolsBase.setRoundedVariationDefaults(
color: Colors.blue,
fill: 0,
weight: 400,
grade: 200,
opticalSize: 48.0);
MaterialSymbolsBase.setSharpVariationDefaults(
color: Colors.teal,
fill: 0,
weight: 600,
grade: 0.25,
opticalSize: 20.0);
// then use VariedIcon.varied() to create your icons - instead of Icon() directly
Icon example = TwoToneIcon.varied(twoToneVariation:TwoToneVariation.filled_first, Symbols.developer );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment