TextTheme class abstract

Defines the text styles used throughout the application.

Mixed-in types
Annotations
  • @freezed

Constructors

TextTheme.new({@Default(TextStyle(fontFamily: 'Geist', package: 'waveui', fontSize: 36, height: 1.2, fontWeight: FontWeight.w700)) TextStyle h1, @Default(TextStyle(fontFamily: 'Geist', package: 'waveui', fontSize: 30, height: 1.2, fontWeight: FontWeight.w600)) TextStyle h2, @Default(TextStyle(fontFamily: 'Geist', package: 'waveui', fontSize: 24, height: 1.3, fontWeight: FontWeight.w600)) TextStyle h3, @Default(TextStyle(fontFamily: 'Geist', package: 'waveui', fontSize: 18, height: 1.4, fontWeight: FontWeight.w500)) TextStyle h4, @Default(TextStyle(fontFamily: 'Geist', package: 'waveui', fontSize: 16, height: 1.4, fontWeight: FontWeight.w500)) TextStyle h5, @Default(TextStyle(fontFamily: 'Geist', package: 'waveui', fontSize: 14, height: 1.4, fontWeight: FontWeight.w500)) TextStyle h6, @Default(TextStyle(fontFamily: 'Geist', package: 'waveui', fontSize: 18, height: 1.4, fontWeight: FontWeight.w400)) TextStyle large, @Default(TextStyle(fontFamily: 'Geist', package: 'waveui', fontSize: 16, height: 1.5, fontWeight: FontWeight.w400)) TextStyle body, @Default(TextStyle(fontFamily: 'Geist', package: 'waveui', fontSize: 14, height: 1.4, fontWeight: FontWeight.w400)) TextStyle small})
Creates a TextTheme.
factory

Properties

body TextStyle
no setterinherited
copyWith → $TextThemeCopyWith<TextTheme>
Create a copy of TextTheme with the given fields replaced by the non-null parameter values.
no setterinherited
h1 TextStyle
no setterinherited
h2 TextStyle
no setterinherited
h3 TextStyle
no setterinherited
h4 TextStyle
no setterinherited
h5 TextStyle
no setterinherited
h6 TextStyle
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
large TextStyle
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
small TextStyle
no setterinherited

Methods

apply({Color? color}) TextTheme
Returns a copy of this TextTheme with the given color applied to all text styles.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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

Static Methods

of(BuildContext context) TextTheme
Retrieves the TextTheme from the nearest WaveApp ancestor.