flutter 导入import 'package:transparent_image/transparent_image.dart';报错

1.在 pubspec.yaml 里 dependencies 添加
dependencies:
flutter:
sdk: flutter
transparent_image: ^0.1.0

2.cmd 下进入到应用目录,运行 flutter packages get
flutter 会安装 transparent_image 包

你可能感兴趣的:(flutter 导入import 'package:transparent_image/transparent_image.dart';报错)