MacosTypography class
macOS typography.
To obtain the current typography, call MacosTheme.of with the current BuildContext and read the MacosThemeData.typography property.
See also:
- MacosTheme, for aspects of a macos application that can be globally adjusted, such as the primary color.
- developer.apple.com/design/human-interface-guidelines/macos/visual-design/typography/
- Mixed in types
Constructors
- MacosTypography({required Color color, TextStyle? largeTitle, TextStyle? title1, TextStyle? title2, TextStyle? title3, TextStyle? headline, TextStyle? subheadline, TextStyle? body, TextStyle? callout, TextStyle? footnote, })
-
Creates a typography that uses the given values.
factory
- MacosTypography.raw({required TextStyle largeTitle, required TextStyle title1, required TextStyle title2, required TextStyle title3, required TextStyle headline, required TextStyle subheadline, required TextStyle body, required TextStyle callout, required TextStyle footnote, })
-
const
Properties
- body → TextStyle
-
Style used for body text.
final
- callout → TextStyle
-
Style used for callouts.
final
-
Style used for standard captions.
final
-
Style used for alternate captions.
final
- footnote → TextStyle
-
Style used in footnotes
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headline → TextStyle
-
Style used for headings.
final
- largeTitle → TextStyle
-
Style used for large titles.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subheadline → TextStyle
-
Style used for subheadings.
final
- title1 → TextStyle
-
Style used for first-level hierarchical headings.
final
- title2 → TextStyle
-
Style used for second-level hierarchical headings.
final
- title3 → TextStyle
-
Style used for third-level hierarchical headings.
final
Methods
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
merge(
MacosTypography? other) → MacosTypography -
Creates a new MacosTypography where each text style from this object has been
merged with the matching text style from the
other
object. -
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 Properties
- black ↔ MacosTypography
-
getter/setter pair
- white ↔ MacosTypography
-
getter/setter pair
Static Methods
-
lerp(
MacosTypography a, MacosTypography b, double t) → MacosTypography - Linearly interpolate between two typographies.