ScriptCategory enum Null safety

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.

Constants

dense → const ScriptCategory

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

const ScriptCategory(1)
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.

const ScriptCategory(0)
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.

const ScriptCategory(2)
values → const List<ScriptCategory>

A constant List of the values in this enum, in order of their declaration.

const List<ScriptCategory>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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