flutter项目展示pag文件
引用pag插件
https://pub.dev/packages/pag
执行命令引入
flutter pub add pag
将pag文件放到项目中
在pubspec.yaml中 配置静态文件
配置好后在页面中使用
在编译过程中可能会出现这个报错
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ‘:pag’ -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.20