marcos930807 / awesomeDialogs

A new Flutter package project for simple a awesome dialogs
Other
340 stars 109 forks source link

Labeled null safe, but when but unable to compile because compiler says not null safe #66

Closed pcelis19 closed 3 years ago

pcelis19 commented 3 years ago

When I try to compile my application I get the following error

Error: Cannot run with sound null safety, because the following dependencies don't support null safety:

  • package:awesome_dialog

  • package:simple_animations

  • package:flare_flutter

  • package:supercharged

  • package:sa_v1_migration

  • package:flare_dart

  • package:supercharged_dart

I looked at the Dependencies of Awesome Dialog, and found the following:

If I remove AwesomeDialog from my dependencies and compile without it, everything runs fine.

marcos930807 commented 3 years ago

Hi, are you using de null safety prerelesse version 2.0??.

marcos930807 commented 3 years ago

Even the prerelesse version do not relay on flare_dart as a transitive dependency

pcelis19 commented 3 years ago

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:

- package:awesome_dialog
- package:simple_animations
- package:flare_flutter

- package:supercharged
- package:sa_v1_migration
- package:flare_dart
- package:supercharged_dart

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)
marcos930807 commented 3 years ago

@pcelis19 make shure use the null safety version awesome_dialog: ^2.0.0-nullsafety.1