Created
January 23, 2026 16:57
-
-
Save fredgrott/7a712b0c901a04986bcc6211771a5444 to your computer and use it in GitHub Desktop.
button font size
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
| @immutable | |
| class ButtonFontSize { | |
| final double xs; | |
| final double sm; | |
| final double md; | |
| final double lg; | |
| final double xl; | |
| const ButtonFontSize({this.xs = 14, this.sm = 14, this.md = 16, this.lg = 20, this.xl = 24}); | |
| } | |
| extension M3EButtonFontSizeExt on M3ECustomTypography { | |
| ButtonFontSize get buttonFontSize => const ButtonFontSize(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment