AdaptiveFontSize class

Pre-defined adaptive font sizes.

Text(
  'Hello',
  style: TextStyle(fontSize: AdaptiveFontSize.body(context)),
)

Properties

hashCode → int
The hash code for this object.
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

Static Methods

body(BuildContext context) → double
Body text size (14/15/16 for phone/tablet/desktop)
caption(BuildContext context) → double
Caption text size (10/11/12 for phone/tablet/desktop)
display(BuildContext context) → double
Display text size (32/48/64 for phone/tablet/desktop)
headline(BuildContext context) → double
Headline text size (24/32/40 for phone/tablet/desktop)
small(BuildContext context) → double
Small text size (12/13/14 for phone/tablet/desktop)
subtitle(BuildContext context) → double
Subtitle text size (16/18/20 for phone/tablet/desktop)
title(BuildContext context) → double
Title text size (20/24/28 for phone/tablet/desktop)