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, TextStyle? caption1, TextStyle? caption2})
-
Creates a typography that uses the given values.
factory
- MacosTypography.darkOpaque()
-
factory
- MacosTypography.lightOpaque()
-
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, required TextStyle caption1, required TextStyle caption2})
-
const
Properties
- body → TextStyle
-
Style used for body text.
final
- callout → TextStyle
-
Style used for callouts.
final
- caption1 → TextStyle
-
Style used for standard captions.
final
- caption2 → TextStyle
-
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
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.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
otherobject. -
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 Methods
-
lerp(
MacosTypography a, MacosTypography b, double t) → MacosTypography - Linearly interpolate between two typographies.
-
of(
BuildContext context) → MacosTypography