Skip to content

fix: correct default heading font sizes - #1242

Open
rahulshahDEV wants to merge 1 commit into
AppFlowy-IO:mainfrom
rahulshahDEV:fix/heading-default-font-size-1241
Open

rahulshahDEV wants to merge 1 commit into
AppFlowy-IO:mainfrom
rahulshahDEV:fix/heading-default-font-size-1241

Conversation

@rahulshahDEV

Copy link
Copy Markdown

Fixes #1241

Heading levels are stored from 1 to 6, while the default font-size list is zero-indexed. Offset the lookup by one so H1 through H6 map to their intended sizes.

Verification

  • Added widget regression coverage for all six default heading sizes.
  • Confirmed the test failed before the fix: H1 rendered at 28 px instead of 32 px.
  • flutter analyze . passed.
  • dart run custom_lint passed.
  • flutter test --coverage passed (949 tests).
  • dart format --set-exit-if-changed passed for both changed files.

@CLAassistant

CLAassistant commented Sep 26, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] heading default font size wrong

2 participants