StreamTextTheme class
Contains definitions for the various text styles.
Constructors
- StreamTextTheme.dark({TextStyle title1 = const TextStyle(fontSize: 24, fontWeight: FontWeight.w500, color: Colors.white), TextStyle title3 = const TextStyle(fontSize: 16, fontWeight: FontWeight.w400, color: Colors.white), TextStyle title3Bold = const TextStyle(fontSize: 16, fontWeight: FontWeight.w500, color: Colors.white), TextStyle body = const TextStyle(fontSize: 14, fontWeight: FontWeight.w400, color: Colors.white), TextStyle bodyItalic = const TextStyle(fontSize: 14, fontWeight: FontWeight.w400, color: Colors.white, fontStyle: FontStyle.italic), TextStyle bodyBold = const TextStyle(fontSize: 14, fontWeight: FontWeight.w500, color: Colors.white), TextStyle footnote = const TextStyle(fontSize: 12, color: Colors.white, fontWeight: FontWeight.w400), TextStyle footnoteItalic = const TextStyle(fontSize: 12, color: Colors.white, fontStyle: FontStyle.italic, fontWeight: FontWeight.w400), TextStyle footnoteBold = const TextStyle(fontSize: 12, fontWeight: FontWeight.w500, color: Colors.white), TextStyle tabBar = const TextStyle(fontSize: 10, fontWeight: FontWeight.w400, color: Colors.white)})
-
Initialise with dark theme.
const
- StreamTextTheme.light({TextStyle title1 = const TextStyle(fontSize: 24, fontWeight: FontWeight.w500, color: Colors.black), TextStyle title3 = const TextStyle(fontSize: 16, fontWeight: FontWeight.w400, color: Colors.black), TextStyle title3Bold = const TextStyle(fontSize: 16, fontWeight: FontWeight.w500, color: Colors.black), TextStyle body = const TextStyle(fontSize: 14, fontWeight: FontWeight.w400, color: Colors.black), TextStyle bodyItalic = const TextStyle(fontSize: 14, fontWeight: FontWeight.w400, color: Colors.black, fontStyle: FontStyle.italic), TextStyle bodyBold = const TextStyle(fontSize: 14, fontWeight: FontWeight.w500, color: Colors.black), TextStyle footnote = const TextStyle(fontSize: 12, color: Colors.black, fontWeight: FontWeight.w400), TextStyle footnoteItalic = const TextStyle(fontSize: 12, color: Colors.black, fontStyle: FontStyle.italic, fontWeight: FontWeight.w400), TextStyle footnoteBold = const TextStyle(fontSize: 12, fontWeight: FontWeight.w500, color: Colors.black), TextStyle tabBar = const TextStyle(fontSize: 10, fontWeight: FontWeight.w400, color: Colors.black)})
-
Initialise light text theme.
const
- StreamTextTheme.raw({required TextStyle title1, required TextStyle title3, required TextStyle title3Bold, required TextStyle body, required TextStyle bodyItalic, required TextStyle bodyBold, required TextStyle footnote, required TextStyle footnoteItalic, required TextStyle footnoteBold, required TextStyle tabBar})
-
Raw text theme initialization.
const
Properties
- body → TextStyle
-
Text style for body text.
final
- bodyBold → TextStyle
-
Bold text style for body text.
final
- bodyItalic → TextStyle
-
Italic text theme for body text.
final
-
Bold text style for caption text.
final
- footnote → TextStyle
-
Text style for footnote text.
final
- footnoteBold → TextStyle
-
Bold text style for footnote text.
final
- footnoteItalic → TextStyle
-
Italic text style for footnote text.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tabBar → TextStyle
-
Text style for tab bar text.
final
- title1 → TextStyle
-
Text style for title1 text.
final
- title3 → TextStyle
-
Text style for title3 text.
final
- title3Bold → TextStyle
-
Bold text style for title3 text.
final
Methods
-
copyWith(
{TextStyle? title1, TextStyle? title3, TextStyle? title3Bold, TextStyle? body, TextStyle? bodyItalic, TextStyle? bodyBold, TextStyle? footnote, TextStyle? footnoteItalic, TextStyle? footnoteBold, TextStyle? tabBar}) → StreamTextTheme - Copy with theme
-
lerp(
StreamTextTheme? other, double t) → StreamTextTheme - Linearly interpolate between two text themes.
-
merge(
StreamTextTheme? other) → StreamTextTheme - Merge text themes.
-
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