cupertino_typography 0.2.0
cupertino_typography: ^0.2.0 copied to clipboard
The complete Apple HIG iOS Text Style catalog (11 styles) as Flutter TextStyles, with emphasized variants and a Material TextTheme bridge.
0.2.0 #
CupertinoTypography.adaptiveTextTheme(): Added a static method that returnsCupertinoTypography.textTheme()on iOS and macOS, andnullon every other platform, following the sameadaptivenaming idiom as widgets likeSwitch.adaptive. Accepts an optionalplatformargument for tests and other callers that need to force a specific platform.- Added a GitHub Actions CI workflow (
.github/workflows/ci.yaml) that runsflutter analyzeandflutter testfor both the root package and theexample/app on every push and pull request againstmain. - README / README.ja: Added a side-by-side screenshot comparing Material's default
TextThemeagainstCupertinoTypography.textTheme()on the same screen, plus a usage example foradaptiveTextTheme().
🤖 Generated with Claude Code
0.1.0 #
Initial release.
CupertinoTypography: Added the 11 Apple HIG iOS Text Styles (Dynamic Type's "Large" size category) asTextStyleconstants (largeTitle/title1/title2/title3/headline/body/callout/subheadline/footnote/caption1/caption2).CupertinoTypography: Added an emphasized variant of each of the above 11 styles (largeTitleEmphasized, etc.). Reflects the HIG design of keeping onlylargeTitle/title1/title2at Bold (w700), with everything else staying at Semibold (w600).CupertinoTypography.fontFamilyForSize(): Added a helper that returns whetherCupertinoSystemTextorCupertinoSystemDisplayshould be used for a given font size (boundary at 20pt).CupertinoTypography.textTheme(): Added a static method that returns aTextThemewith the 11 HIG styles mapped onto the 15 roles of Material'sTextTheme.
🤖 Generated with Claude Code