DavBfr / dart_pdf

Pdf creation module for dart/flutter
https://pub.dev/packages/pdf
Apache License 2.0
1.36k stars 593 forks source link

Can not run project with printing 5.13.0 #1690

Open datpt11 opened 2 days ago

datpt11 commented 2 days ago

Describe the bug

../../.pub-cache/hosted/pub.dev/printing-5.13.0/lib/src/preview/page.dart:88:24: Error: The getter 'WidgetState' isn't defined for the class 'PdfPreviewPage'. can not run project To Reproduce Code snippet to reproduce the behavior:

// your code

Expected behavior

Screenshots

Flutter Doctor

Flutter (Channel stable, 3.19.6, on macOS 14.3 23D56 darwin-arm64, locale en-US)
    • Flutter version 3.19.6 on channel stable at /Users/xxx/workspace/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 54e66469a9 (2 months ago), 2024-04-17 13:08:03 -0700
    • Engine revision c4cd48e186
    • Dart version 3.3.4
    • DevTools version 2.31.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/xxx/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/xxx/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15E204a
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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 17.0.7+0-17.0.7b1000.6-10550314)

[✓] VS Code (version 1.90.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.90.0

[✓] Connected device (5 available)
    • DinoP (mobile)     • 00008110-001A492836EB801E                • ios            • iOS 17.5.1 21F90
    • iPhone (mobile)    • 1240a15de43a71032b3bbbd6da96172886f2bdfa • ios            • iOS 12.5.7 16H81
    • iPhone 13 (mobile) • FB24DBF4-A79F-43E9-8643-4054E6CDFA73     • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-4 (simulator)
    • macOS (desktop)    • macos                                    • darwin-arm64   • macOS 14.3 23D56 darwin-arm64
    • Chrome (web)       • chrome                                   • web-javascript • Google Chrome 126.0.6478.116

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

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

DavBfr commented 2 days ago

your flutter doctor please

datpt11 commented 2 days ago

oh sorry i updated

DavBfr commented 2 days ago

Looks like it works only on Flutter 3.22

BrunoVieiraL commented 22 hours ago

Looks like it works only on Flutter 3.22

No, in flutter 3.19 as well. I have the same problem here

DavBfr commented 22 hours ago

@BrunoVieiraL What problem?

DavBfr commented 22 hours ago

I removed version 5.13.0 and published 5.13.1 with Flutter 3.22.0 as minimal requirement.