Created
August 10, 2020 10:45
-
-
Save stephaniefash/25e976e4fa87709847135951c6e6cc22 to your computer and use it in GitHub Desktop.
text styles.
This file contains 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
const TextStyle({ | |
this.inherit = true, | |
this.color, | |
this.backgroundColor, | |
this.fontSize, | |
this.fontWeight, | |
this.fontStyle, | |
this.letterSpacing, | |
this.wordSpacing, | |
this.textBaseline, | |
this.height, | |
this.locale, | |
this.foreground, | |
this.background, | |
this.shadows, | |
this.fontFeatures, | |
this.decoration, | |
this.decorationColor, | |
this.decorationStyle, | |
this.decorationThickness, | |
this.debugLabel, | |
String fontFamily, | |
List<String> fontFamilyFallback, | |
String package, | |
}) : fontFamily = package == null ? fontFamily : 'packages/$package/$fontFamily', | |
_fontFamilyFallback = fontFamilyFallback, | |
_package = package, | |
assert(inherit != null), | |
assert(color == null || foreground == null, _kColorForegroundWarning), | |
assert(backgroundColor == null || background == null, _kColorBackgroundWarning); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment