gpt4 book ai didi

flutter - 非 Material 应用程序和 Material 应用程序之间有什么区别

转载 作者:IT王子 更新时间:2023-10-29 06:57:59 24 4
gpt4 key购买 nike

flutter 文档中并没有给出明确的解释,对于刚接触 Flutter 的人来说会比较难理解。 https://flutter.dev/docs/development/ui/layout#non-material-appshttps://flutter.dev/docs/development/ui/layout#non-material-apps

非 Material 应用程序和 Material 应用程序之间有什么区别,以及构建它的概念是什么。展望 future ,我如何决定“我的这部分 flutter 代码是在 Material 应用程序中还是在非 Material 应用程序中”?

What is the difference between Material and MaterialApp in Flutter?是我提到的 Material 和 MaterialApp 的链接,没有提及非物质概念。

最佳答案

Material 应用程序是使用 Material 库中的小部件的应用程序,它通过使您能够包含现成的小部件(如 AppBar 。根据经验,如果您碰巧导入 material.dart 库来使用某个小部件,那么您正在构建一个 Material 应用程序。否则你的应用程序是非物质的。你可以在 MaterialApp class 中找到更多使用信息。官方文档。

关于flutter - 非 Material 应用程序和 Material 应用程序之间有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55044126/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com