Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Space character being ignored #1784

Open
1 of 5 tasks
AtlasAutocode opened this issue Nov 26, 2024 · 1 comment
Open
1 of 5 tasks

Space character being ignored #1784

AtlasAutocode opened this issue Nov 26, 2024 · 1 comment
Labels
bug Something isn't working needs triage

Comments

@AtlasAutocode
Copy link
Contributor

Describe the bug
On Windows Desktop, an instance of the Text class containing a single space character is not output to PDF.
Is there some setting that I need to change?

To Reproduce
Code snippet to reproduce the behavior:

    doc.addPage(
      pw.MultiPage(
        build: (pw.Context context) => [
          pw.Partitions(
            children: [
              pw.Partition(
                child: pw.Row ( children: [
  pw.Text ( 'pre'),
  pw.Text (' '),    // space character
  pw.Text ( 'post'),
]),
    )])]));

Expected behavior
Text with space pre post

Actual behavior
Text space missing prepost

Flutter Doctor

[√] Flutter (Channel stable, 3.24.4, on Microsoft Windows [Version 10.0.26100.2314], locale en-US)
    • Flutter version 3.24.4 on channel stable at c:\Flutter\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 603104015d (5 weeks ago), 2024-10-24 08:01:25 -0700
    • Engine revision db49896cf2
    • Dart version 3.5.4
    • DevTools version 2.37.3

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\Douglas\AppData\Local\Android\sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11)
    • All Android licenses accepted.

[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.11.5)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.11.35327.3
    • Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2024.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11)

[√] Connected device (2 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.26100.2314]
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 131.0.2903.63

[√] Network resources
    • All expected network resources are available.

Desktop (please complete the following information):

  • iOS
  • Android
  • Browser
  • Windows
  • Linux
@AtlasAutocode AtlasAutocode added bug Something isn't working needs triage labels Nov 26, 2024
@DavBfr
Copy link
Owner

DavBfr commented Nov 28, 2024

Seems to be a bug

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

2 participants