Recently, while learning About Flutter, using package English_word according to the tutorials on the website,

1. Pubspec files manage assets(such as images, packages, etc.) of the Flutter application. In pubspec.yaml, add english_words (3.1.0 or later) to the dependency list, as highlighted in the line below:

"> < span style =" font-size: 14px; line-height: 20pxCopy the code

2. In lib/main.dart, introduce english_words, as shown in the highlighted line:

import 'package:flutter/material.dart';
import 'package:english_words/english_words.dart;
Copy the code

The following error occurs:

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

 - package:english_words
Copy the code

Dart.dev /null-safety dart.dev/null-safety

Run the following command on the terminal:

flutter run --no-sound-null-safety
Copy the code

Pro test useful ~