Closed LongwayCHOW closed 1 week ago
@LongwayCHOW, we have migrated our source to be compatible with Flutter SDK 3.22. In Flutter SDK version 3.22, MaterialState and its related APIs have been moved out of the Material library and renamed to WidgetState.
So, we kindly request that you upgrade the Flutter SDK version to 3.22, or else use the syncfusion_flutter_pdfviewer package version below 25.2.4.
We have also shared the breaking changes documentation below for your reference. Rename MaterialState to WidgetState | Flutter
We hope it will help you resolve the issue. If you have any further queries, please get back to us.
@LongwayCHOW, we have migrated our source to be compatible with Flutter SDK 3.22. In Flutter SDK version 3.22, MaterialState and its related APIs have been moved out of the Material library and renamed to WidgetState.
So, we kindly request that you upgrade the Flutter SDK version to 3.22, or else use the syncfusion_flutter_pdfviewer package version below 25.2.4.
We have also shared the breaking changes documentation below for your reference. Rename MaterialState to WidgetState | Flutter
We hope it will help you resolve the issue. If you have any further queries, please get back to us.
I have received the e-mail you sent and will pick it up as soon as possible, thank you for your letter and have a nice day~
@LongwayCHOW We are closing this issue since we do not have enough information to proceed further. You can reopen this anytime and share the requested details to proceed further.
Bug description
My compilation environment in android studio macOS: android { compileSdk 34 ndkVersion "26.1.10909125" defaultConfig { minSdkVersion 21 targetSdkVersion 34 } } The error I encountered at first was:Failed to find Platform SDK with path: platforms;android-31
Steps to reproduce
Then I tried to force a build with sdk 34 in my build.gradle configuration: subprojects { afterEvaluate { project -> if (project.hasProperty("android")) { android { compileSdkVersion 34 defaultConfig { targetSdkVersion 34 } } } } } After doing the above, start the project in the VM and get the error message:
Launching lib/main.dart on sdk gphone64 arm64 in debug mode... Running Gradle task 'assembleDebug'... ../../../../../.pub-cache/hosted/pub.flutter-io.cn/syncfusion_flutter_pdfviewer-26.1.42/lib/src/form_fields/pdf_signature.dart:590:25: Error: Couldn't find constructor 'WidgetStatePropertyAll'. ? const WidgetStatePropertyAll(Colors.transparent)
^^^^^^^^^^^^^^^^^^^^^^
../../../../../.pub-cache/hosted/pub.flutter-io.cn/syncfusion_flutter_core-26.1.42/lib/src/theme/theme_widget.dart:123:47: Error: The getter 'surfaceContainerHighest' isn't defined for the class 'ColorScheme'.
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
Try:
BUILD FAILED in 10s Error: Gradle task assembleDebug failed with exit code 1
Code sample
Code sample
```dart class EbookDetailPage extends StatefulWidget { static const String id = 'ebook_detail_page'; final String filePath; final String fileType; EbookDetailPage({required this.filePath, required this.fileType}); @override _EbookDetailPageState createState() => _EbookDetailPageState(); } class _EbookDetailPageState extends StateScreenshots or Video
Screenshots / Video demonstration
Stack Traces
Stack Traces
```dart Launching lib/main.dart on sdk gphone64 arm64 in debug mode... Running Gradle task 'assembleDebug'... ../../../../../.pub-cache/hosted/pub.flutter-io.cn/syncfusion_flutter_pdfviewer-26.1.42/lib/src/form_fields/pdf_signature.dart:590:25: Error: Couldn't find constructor 'WidgetStatePropertyAll'. ? const WidgetStatePropertyAllOn which target platforms have you observed this bug?
Android
Flutter Doctor output
Doctor output
```console [✓] Flutter (Channel stable, 3.19.3, on macOS 14.2 23C64 darwin-arm64, locale zh-Hans-HK) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✗] Xcode - develop for iOS and macOS ✗ Xcode installation is incomplete; a full installation is necessary for iOS and macOS development. Download at: https://developer.apple.com/xcode/ Or install Xcode via the App Store. Once installed, run: sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer sudo xcodebuild -runFirstLaunch ✗ CocoaPods not installed. CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS. For more info, see https://flutter.dev/platform-plugins To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions. [✓] Chrome - develop for the web [✓] Android Studio (version 2023.2) [✓] Connected device (3 available) [✓] Network resources ```