플러터(Flutter)
[플러터(Flutter)] - don't support null safety
HANBEEN
2021. 6. 24. 13:05
반응형
플러터 공식문서를 보며 첫 Flutter 앱 작성하기를 따라 하던 중 패키지 적용하는 부분에서 don't support null safety: - package:english_words 가 나타났다.
아래의 두가지 방법 중 하나를 이용하여 해결할 수 있다
1. 터미널을 열고 flutter run --no-sound-null-safety를 입력해준다
% flutter run --no-sound-null-safety
Launching lib/main.dart on iPhone 12 Pro Max in debug mode...
Running Xcode build...
└─Compiling, linking and signing... 1,515ms
Xcode build done. 14.3s
Syncing files to device iPhone 12 Pro Max... 73ms
Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h Repeat this help message.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).
Running with unsound null safety
For more information see https://dart.dev/null-safety/unsound-null-safety
2. Run --> Edit Configurations --> Add Additional Run args --> --no-sound-null-safety

완료!
반응형