ScriptCategory enum

A characterization of the of a TextTheme's glyphs that is used to define its localized TextStyle geometry for ThemeData.textTheme.

The script category defines the overall geometry of a TextTheme for the Typography.geometryThemeFor method in terms of the three language categories defined in material.io/go/design-typography.

Generally speaking, font sizes for ScriptCategory.tall and ScriptCategory.dense scripts - for text styles that are smaller than the title style - are one unit larger than they are for ScriptCategory.englishLike scripts.

Inheritance

Values

englishLike → const ScriptCategory

The languages of Western, Central, and Eastern Europe and much of Africa are typically written in the Latin alphabet. Vietnamese is a notable exception in that, while it uses a localized form of the Latin writing system, its accented glyphs can be much taller than those found in Western European languages. The Greek and Cyrillic writing systems are very similar to Latin.

dense → const ScriptCategory

Language scripts that require extra line height to accommodate larger glyphs, including Chinese, Japanese, and Korean.

tall → const ScriptCategory

Language scripts that require extra line height to accommodate larger glyphs, including South and Southeast Asian and Middle-Eastern languages, like Arabic, Hindi, Telugu, Thai, and Vietnamese.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Constants

values → const List<ScriptCategory>
A constant List of the values in this enum, in order of their declaration.