Skip to content

Instantly share code, notes, and snippets.

@fredgrott
Created November 8, 2025 19:58
Show Gist options
  • Select an option

  • Save fredgrott/4c019fa6b7a425ecc72444f8a9604efe to your computer and use it in GitHub Desktop.

Select an option

Save fredgrott/4c019fa6b7a425ecc72444f8a9604efe to your computer and use it in GitHub Desktop.
how to do emphasizedOverride function
emphasizedOverride(birghtness) {
ColorScheme tempColorScheme = ColorScheme.fromSeed(seedColor: Colors.blue, brightness: brightness, dynamicSchemeVariant: DynamicSchemeVariant.tonalSpot, contrastLevel: 0.0,);
final Color dark = tempColorScheme.brightness == Brightness.light ? tempColorScheme.onSurface : tempColorScheme.surface;
final Color light = tempColorScheme.brightness == Brightness.light ? tempColorScheme.surface : tempColorScheme.onSurface;
return M3Emphasized(
displayLarge: GoogleFonts.name(textStyle: TextStyle(color: brightness == Brightness.light ? dark : light,
decorationColor: brightness == Brightness.light ? dark: light,),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment