Closed pcelis19 closed 3 years ago
Hi, are you using de null safety prerelesse version 2.0??.
Even the prerelesse version do not relay on flare_dart as a transitive dependency
I recently tried adding the package and I continue to get the null safety error. Here is my error:
Launching lib\main.dart on sdk gphone x86 in debug mode...
Error: Cannot run with sound null safety, because the following dependencies
don't support null safety:
[38;5;248m- package:awesome_dialog[39;49m
[38;5;248m- package:simple_animations[39;49m
[38;5;248m- package:flare_flutter[39;49m
[38;5;248m- package:supercharged[39;49m
[38;5;248m- package:sa_v1_migration[39;49m
[38;5;248m- package:flare_dart[39;49m
[38;5;248m- package:supercharged_dart[39;49m
For solutions, see https://dart.dev/go/unsound-null-safety
FAILURE: Build failed with an exception.
* Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1029
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 7s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
@pcelis19 make shure use the null safety version awesome_dialog: ^2.0.0-nullsafety.1
When I try to compile my application I get the following error
I looked at the Dependencies of Awesome Dialog, and found the following:
flare_flutter
depends onflare_dart
which isn't null safe and is "discontinued".If I remove AwesomeDialog from my dependencies and compile without it, everything runs fine.