Skip to content

Set TextStyle(height: double.nan), App Crash #175248

Description

@PaniniA

Steps to reproduce

  1. Build widget like : Text('text', style: TextStyle(height: x))
  2. The height 'x' is calculated and is exactly double.nan
  3. Reload my app
  4. Wait for about ten or so seconds, My app crashed

Expected results

I think the height is calculated and is exactly double.nan, It should be treated as null

Actual results

crashed

Code sample

Code sample

Text('text', style: TextStyle(height: x))

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output

[✓] Flutter (Channel stable, 3.32.8, on macOS 15.0 24A335 darwin-arm64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0-rc3)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2025.1)
[✓] Proxy Configuration
[✓] Connected device (3 available)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: typographyText rendering, possibly libtxtd: api docsIssues with https://api.flutter.dev/f: material designflutter/packages/flutter/material repository.found in release: 3.35Found to occur in 3.35found in release: 3.37Found to occur in 3.37frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onteam-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions