import 'package:flutter/material.dart';
import 'package:english_words/english_words.dart'; // 导入的包

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
@override

...

1,在项目根目录下打开 pubspec.yaml 文件,找到如下代码,添加高亮处代码

dependencies:
flutter:
sdk: flutter

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
english_words: ^3.1.0

2,在 AS 命令行中执行 flutter packages get 即可

相关文章:

  • 2022-12-23
  • 2021-07-26
  • 2021-09-22
  • 2021-05-19
  • 2022-01-21
  • 2021-08-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-27
  • 2021-09-25
  • 2021-05-07
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案