SunnyTextTheme class

List of font styles based on reliveit naming conventions. This can be easily applied to a material or cupertino theme.

Constructors

SunnyTextTheme()
factory

Properties

body1Bold TextStyle
final
body1Light TextStyle
final
final
body1Medium TextStyle
final
body1Normal TextStyle
final
body2Bold TextStyle
final
body2Light TextStyle
final
final
body2Medium TextStyle
final
body2Normal TextStyle
final
body3Light TextStyle
final
final
fontScale double
final
hashCode int
The hash code for this object.
no setterinherited
header1 TextStyle
final
header2 TextStyle
final
header3 TextStyle
final
header4 TextStyle
final
hero TextStyle
final
heroBold TextStyle
final
heroMedium TextStyle
final
input0 TextStyle
final
input1 TextStyle
final
input2 TextStyle
final
placeholder0 TextStyle
final
placeholder1 TextStyle
no setter
placeholder2 TextStyle
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tabBarActive TextStyle
no setter
tabBarInactive TextStyle
no setter

Methods

apply(TextTheme original, {TextStyle? inputStyle}) TextTheme
applyCupertino(CupertinoTextThemeData original) CupertinoTextThemeData
applyDefaults(TextStyle style) TextStyle
applyEach(TextStyle modification(TextStyle input)) SunnyTextTheme
copyWith({double? fontScale, TextStyle? body1Normal, TextStyle? body1Medium, TextStyle? body1Bold, TextStyle? body1Light, TextStyle? body2Normal, TextStyle? body2Medium, TextStyle? body2Bold, TextStyle? body2Light, TextStyle? header4, TextStyle? header3, TextStyle? header2, TextStyle? header1, TextStyle? body3Light, TextStyle? body3Link, TextStyle? input1, TextStyle? input2, TextStyle? hero, TextStyle? heroBold, TextStyle? heroMedium, TextStyle? input0, TextStyle? placeholder0}) SunnyTextTheme
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

defaults SunnyTextTheme
final

Static Methods

init([SunnyTextTheme? theme]) → void
setBrightness(BuildContext context) → void
setFontScale(double scale) → void