Skip to content

🐛 FontSize incorrect in Typography.standard #255

@KevMCarp

Description

@KevMCarp

Typography.standard() does not seem to follow type ramp.
I would expect title to be smaller than subtitle however subtitle is currently much larger.

factory Typography.standard({
    Brightness? brightness,
    Color? color,
  }) {
    assert(brightness != null || color != null);
    color ??= brightness == Brightness.light ? Colors.black : Colors.white;
    return Typography(
      display: TextStyle(
        fontSize: 42,
        color: color,
        fontWeight: FontWeight.w600,
      ),
      titleLarge: TextStyle(
        fontSize: 34,
        color: color,
        fontWeight: FontWeight.w500,
      ),
      title: TextStyle(
        fontSize: 22,
        color: color,
        fontWeight: FontWeight.w600,
      ),
      subtitle: TextStyle(
        fontSize: 28,
        color: color,
        fontWeight: FontWeight.w500,
      ),
      bodyLarge: TextStyle(
        fontSize: 18,
        color: color,
        fontWeight: FontWeight.normal,
      ),
      bodyStrong: TextStyle(
        fontSize: 14,
        color: color,
        fontWeight: FontWeight.w600,
      ),
      body: TextStyle(
        fontSize: 14,
        color: color,
        fontWeight: FontWeight.normal,
      ),
      caption: TextStyle(
        fontSize: 12,
        color: color,
        fontWeight: FontWeight.normal,
      ),
    );
  }

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions