Created
November 8, 2025 19:58
-
-
Save fredgrott/4c019fa6b7a425ecc72444f8a9604efe to your computer and use it in GitHub Desktop.
how to do emphasizedOverride function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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