AppTextStyle class
App text styles defined by our UX Team.
Each style has four variations: normal, light, medium and bold, accordingly to it's FontWeight.
- Inheritance
-
- Object
- ThemeExtension<
AppTextStyle> - AppTextStyle
Constructors
- AppTextStyle({required TextStyle displayLarge, required TextStyle displayMedium, required TextStyle displaySmall, required TextStyle headlineLarge, required TextStyle headlineMedium, required TextStyle headlineSmall, required TextStyle titleLarge, required TextStyle titleMedium, required TextStyle titleSmall, required TextStyle bodyLarge, required TextStyle bodyMedium, required TextStyle bodySmall, required TextStyle labelLarge, required TextStyle labelMedium, required TextStyle labelSmall})
-
Creates a AppTextStyle
const
Properties
- bodyLarge → TextStyle
-
final
- bodyMedium → TextStyle
-
final
- bodySmall → TextStyle
-
final
- displayLarge → TextStyle
-
final
- displayMedium → TextStyle
-
final
- displaySmall → TextStyle
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headlineLarge → TextStyle
-
final
- headlineMedium → TextStyle
-
final
- headlineSmall → TextStyle
-
final
- labelLarge → TextStyle
-
final
- labelMedium → TextStyle
-
final
- labelSmall → TextStyle
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- titleLarge → TextStyle
-
final
- titleMedium → TextStyle
-
final
- titleSmall → TextStyle
-
final
- type → Object
-
The extension's type.
no setterinherited
Methods
-
copyWith(
{TextStyle? displayLarge, TextStyle? displayMedium, TextStyle? displaySmall, TextStyle? headlineLarge, TextStyle? headlineMedium, TextStyle? headlineSmall, TextStyle? titleLarge, TextStyle? titleMedium, TextStyle? titleSmall, TextStyle? bodyLarge, TextStyle? bodyMedium, TextStyle? bodySmall, TextStyle? labelLarge, TextStyle? labelMedium, TextStyle? labelSmall}) → ThemeExtension< AppTextStyle> -
Creates a copy of this theme extension with the given fields
replaced by the non-null parameter values.
override
-
lerp(
covariant ThemeExtension< AppTextStyle> ? other, double t) → ThemeExtension<AppTextStyle> -
Linearly interpolate with another ThemeExtension object.
override
-
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