BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hello - after upgrading to Flutter 3.7.5, I'm unable to compile a Flutter Web Project.
The errors are:../../.pub-cache/hosted/pub.dev/syncfusion_flutter_xlsio-20.4.51-beta/lib/src/xlsio/general/serialize_workbook.dart:419:54: Error: The argument type 'String?' can't be assigned to the parameter type 'Object' because 'String?' is nullable and 'Object' isn't.
- 'Object' is from 'dart:core'.
builder.attribute('algorithmName', sheet._algorithmName);
^
../../.pub-cache/hosted/pub.dev/syncfusion_flutter_xlsio-20.4.51-beta/lib/src/xlsio/worksheet/worksheet.dart:1786:11: Context: '_algorithmName' refers to a property so it couldn't be promoted.
See http://dart.dev/go/non-promo-property
String? _algorithmName;
^
../../.pub-cache/hosted/pub.dev/syncfusion_flutter_xlsio-20.4.51-beta/lib/src/xlsio/general/serialize_workbook.dart:902:51: Error: The argument type 'String?' can't be assigned to the parameter type 'Object' because 'String?' is nullable and 'Object' isn't.
- 'Object' is from 'dart:core'.
builder.attribute('tooltip', link.screenTip);
^
../../.pub-cache/hosted/pub.dev/syncfusion_flutter_xlsio-20.4.51-beta/lib/src/xlsio/hyperlinks/hyperlink.dart:63:11: Context: 'screenTip' refers to a property so it couldn't be promoted.
See http://dart.dev/go/non-promo-property
String? screenTip;
^
../../.pub-cache/hosted/pub.dev/syncfusion_flutter_xlsio-20.4.51-beta/lib/src/xlsio/general/serialize_workbook.dart:905:51: Error: The argument type 'String?' can't be assigned to the parameter type 'Object' because 'String?' is nullable and 'Object' isn't.
- 'Object' is from 'dart:core'.
builder.attribute('display', link.textToDisplay);
^
../../.pub-cache/hosted/pub.dev/syncfusion_flutter_xlsio-20.4.51-beta/lib/src/xlsio/hyperlinks/hyperlink.dart:85:11: Context: 'textToDisplay' refers to a property so it couldn't be promoted.
See http://dart.dev/go/non-promo-property
String? textToDisplay;
^
../../.pub-cache/hosted/pub.dev/syncfusion_flutter_xlsio-20.4.51-beta/lib/src/xlsio/general/serialize_workbook.dart:991:59: Error: The argument type 'String?' can't be assigned to the parameter type 'Object' because 'String?' is nullable and 'Object' isn't.
- 'Object' is from 'dart:core'.
'tooltip', picture.hyperlink!.screenTip);
^
../../.pub-cache/hosted/pub.dev/syncfusion_flutter_xlsio-20.4.51-beta/lib/src/xlsio/general/serialize_workbook.dart:1666:62: Error: The argument type 'String?' can't be assigned to the parameter type 'Object' because 'String?' is nullable and 'Object' isn't.
- 'Object' is from 'dart:core'.
'ContentType', _workbook._defaultContentTypes[key]);
^
../../.pub-cache/hosted/pub.dev/syncfusion_flutter_xlsio-20.4.51-beta/lib/src/xlsio/general/serialize_workbook.dart:2636:45: Error: The argument type 'String?' can't be assigned to the parameter type 'Object' because 'String?' is nullable and 'Object' isn't.
- 'Object' is from 'dart:core'.
builder.attribute('text', condition.text);
^
../../.pub-cache/hosted/pub.dev/syncfusion_flutter_xlsio-20.4.51-beta/lib/src/xlsio/general/serialize_workbook.dart:3323:57: Error: The argument type 'String?' can't be assigned to the parameter type 'Object' because 'String?' is nullable and 'Object' isn't.
- 'Object' is from 'dart:core'.
builder.attribute('id', dataBarImpl._stGUID);
^
My pubspec.yaml file for dependencies is as follows:
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
firebase_core: ^2.7.0
firebase_auth: ^4.2.9
cloud_firestore: ^4.4.3
syncfusion_flutter_calendar: ^20.4.51
provider: ^6.0.3
syncfusion_flutter_datagrid: ^20.4.51
syncfusion_flutter_datagrid_export: ^20.4.51-beta
syncfusion_flutter_core: ^20.4.51
syncfusion_flutter_pdf: ^20.4.51
html: ^0.15.1
intl: ^0.17.0
url_launcher: ^6.1.7
fancy_password_field: ^2.0.0
universal_html: ^2.0.8
Flutter doctor is as follows:
[✓] Flutter (Channel stable, 3.7.5, on macOS 13.1 22C65 darwin-arm64, locale en-US)
• Flutter version 3.7.5 on channel stable at /Users/martinp/Development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision c07f788888 (5 hours ago), 2023-02-22 17:52:33 -0600
• Engine revision 0f359063c4
• Dart version 2.19.2
• DevTools version 2.20.1
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/martinp/Library/Android/sdk
• Platform android-31, build-tools 31.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14C18
• CocoaPods version 1.11.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2022.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 11.0.15+0-b2043.56-8887301)
[✓] Connected device (2 available)
• macOS (desktop) • macos • darwin-arm64 • macOS 13.1 22C65 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 110.0.5481.100
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
Any help is much appreciated!
Thank you!
Martin
Martin, we will resolve this issue and include the fix in our next weekly NuGet release scheduled for February 28th,2023.
Martin, we have resolved the issue in our latest version 20.4.52. Kindly upgrade to this latest version and let us know if this helps.
Latest Package: https://pub.dev/packages/syncfusion_flutter_xlsio/versions/20.4.52-beta
Thanks - so far the update seems to be working!
We are glad that the latest package did resolve your issue, Martin.