Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的项目中,当我创建一个新的小部件时,AndroinStudio 建议我cuppertino library为小部件导入。
cuppertino library
默认情况下如何使用material library导入,因为我的项目只是 Android 项目?
material library
“因为我的项目只是 Android 项目”
这有什么区别?您可以在每个 Flutter 平台上使用 Material Design。
一些编辑可能会建议您导入该库,但要在创建新的 Widget 类时删除错误,您应该:
import 'package:flutter/widgets.dart';