AppTextStyle enum
Apple's iOS Dynamic Type scale at its default size, a dp per point, with two steps it lacks: display for a dashboard figure, pageTitle for an app bar.
Values
- display → const AppTextStyle
-
const AppTextStyle(40, 44, emphasizedWeight: FontWeight.w700) - largeTitle → const AppTextStyle
-
const AppTextStyle(34, 41, emphasizedWeight: FontWeight.w700) - title1 → const AppTextStyle
-
const AppTextStyle(28, 34, emphasizedWeight: FontWeight.w700) - pageTitle → const AppTextStyle
-
const AppTextStyle(24, 30, weight: FontWeight.w600, emphasizedWeight: FontWeight.w700) - title2 → const AppTextStyle
-
const AppTextStyle(22, 28, emphasizedWeight: FontWeight.w700) - title3 → const AppTextStyle
-
const AppTextStyle(20, 25) - headline → const AppTextStyle
-
const AppTextStyle(17, 22, weight: FontWeight.w600) - body → const AppTextStyle
-
const AppTextStyle(17, 22) - callout → const AppTextStyle
-
const AppTextStyle(16, 21) - subheadline → const AppTextStyle
-
const AppTextStyle(15, 20) - footnote → const AppTextStyle
-
const AppTextStyle(13, 18) - caption1 → const AppTextStyle
-
const AppTextStyle(12, 16) - caption2 → const AppTextStyle
-
const AppTextStyle(11, 13)
Properties
- emphasizedWeight → FontWeight
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- leading → double
-
final
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → double
-
final
- weight → FontWeight
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
of(
BuildContext context, {bool emphasized = false}) → TextStyle -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
custom(
BuildContext context, {required double size, required double leading, FontWeight weight = FontWeight.w400}) → TextStyle - For text sized to the shape it marks, such as a letter in an icon.
Constants
-
values
→ const List<
AppTextStyle> - A constant List of the values in this enum, in order of their declaration.