h2 property

double get h2

Second-level heading (H2).

Size: h3 × scaleFactor (default: 59.0 × 1.27 = ~75.0px)

Use cases:

  • Page subtitles
  • Major section dividers
  • Welcome messages
  • Feature highlights

Example:

Text(
  'Welcome Back!',
  style: TextStyle(
    fontSize: appFontSizes.h2,
    fontWeight: FontWeight.bold,
  ),
)

Implementation

double get h2 => h3 * _scaleFactor;