StreamTextTheme class

Class for holding text theme

Constructors

StreamTextTheme.dark({TextStyle title = const TextStyle(fontSize: 22, fontWeight: FontWeight.bold, color: Colors.white), TextStyle headlineBold = const TextStyle(fontSize: 16, fontWeight: FontWeight.bold, color: Colors.white), TextStyle headline = const TextStyle(fontSize: 16, fontWeight: FontWeight.w500, color: Colors.white), TextStyle bodyBold = const TextStyle(fontSize: 14, fontWeight: FontWeight.bold, color: Colors.white), TextStyle body = const TextStyle(fontSize: 14, fontWeight: FontWeight.w500, color: Colors.white), TextStyle footnoteBold = const TextStyle(fontSize: 12, fontWeight: FontWeight.w500, color: Colors.white), TextStyle footnote = const TextStyle(fontSize: 12, color: Colors.white), TextStyle captionBold = const TextStyle(fontSize: 10, fontWeight: FontWeight.bold, color: Colors.white)})
Initialise with dark theme
StreamTextTheme.light({TextStyle title = const TextStyle(fontSize: 22, fontWeight: FontWeight.bold, color: Colors.black), TextStyle headlineBold = const TextStyle(fontSize: 16, fontWeight: FontWeight.bold, color: Colors.black), TextStyle headline = const TextStyle(fontSize: 16, fontWeight: FontWeight.w500, color: Colors.black), TextStyle bodyBold = const TextStyle(fontSize: 14, fontWeight: FontWeight.bold, color: Colors.black), TextStyle body = const TextStyle(fontSize: 14, fontWeight: FontWeight.w500, color: Colors.black), TextStyle footnoteBold = const TextStyle(fontSize: 12, fontWeight: FontWeight.w500, color: Colors.black), TextStyle footnote = const TextStyle(fontSize: 12, color: Colors.black), TextStyle captionBold = const TextStyle(fontSize: 10, fontWeight: FontWeight.bold, color: Colors.black)})
Initialise light text theme

Properties

body TextStyle
Text theme body
final
bodyBold TextStyle
Bold Text theme for body
final
captionBold TextStyle
Bold Text theme for caption
final
footnote TextStyle
Text theme for footnote
final
footnoteBold TextStyle
Bold Text theme for footnote
final
hashCode int
The hash code for this object.
no setterinherited
headline TextStyle
Text theme for headline
final
headlineBold TextStyle
Body Text theme for headline
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title TextStyle
Text theme for title
final

Methods

copyWith({Brightness brightness = Brightness.light, TextStyle? body, TextStyle? title, TextStyle? headlineBold, TextStyle? headline, TextStyle? bodyBold, TextStyle? footnoteBold, TextStyle? footnote, TextStyle? captionBold}) StreamTextTheme
Copy with theme
merge(StreamTextTheme? other) StreamTextTheme
Merge text theme
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