【发布时间】:2023-01-02 20:07:49
【问题描述】:
来自AnimatedGrid 运行:
flutter create --sample=widgets.AnimatedGrid.1 mysample
示例代码没有找到AnimatedGrid。什么东西少了?
运行 flutter analyze 或 flutter run 显示以下消息:
【问题讨论】:
-
重新启动 IDE 并重试?
-
我没有使用 IDE。只需在终端上运行。
标签: flutter
来自AnimatedGrid 运行:
flutter create --sample=widgets.AnimatedGrid.1 mysample
示例代码没有找到AnimatedGrid。什么东西少了?
运行 flutter analyze 或 flutter run 显示以下消息:
【问题讨论】:
标签: flutter
AnimatedGridState由firestore_ui包提供,在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: ^1.0.2
firestore_ui: ^1.24.0
并将其导入该文件。它在生成项目时没有添加 pubspec.yaml。
【讨论】: