android - 如果我只做 android 开发,使用 flutter 是个好主意吗?

标签 android flutter

我不知道在这里问这种问题是否合适,但我还是要问我的问题。

最近,我完成了我的第一个 Android 应用程序的构建。没什么特别的,只是一个简单的应用程序,只有一个 Activity 、一个 recyclerView 和工具栏。我注意到,在应用程序开发过程中,我发现自己大部分时间都花在谷歌搜索和重复应用程序构建上,同时尝试构建 UI 并按照我想要的方式对其进行自定义,而不是专注于创建应用程序的功能。

现在我想尝试制作另一个应用程序,但我不想再次经历同样痛苦的过程。这就是 Flutter 发挥作用的地方。 Flutter 是一个很好的 UI 构建和定制框架,热重载非常完美。所以我在想,与其使用 100% android,不如尝试一种混合方法:将 flutter 用于 UI,将 flutter 的平台 channel 用于 API 访问。

大家怎么看。这是个好主意还是我应该只为 Android 应用程序坚持使用 kotlin?谢谢

最佳答案

Now I want to try to make another app but I don't want to go through the same painful process again. This is where flutter come into play. Flutter is a good framework for UI building and customization and with hot-reload it's perfect. So I was thinking, instead of going 100% android, why not try a hybrid approach: use flutter for UI, and flutter's platform channels for API access.

在尝试学习新事物时,您有时会不得不经历一个痛苦的过程。 (有时)没有痛苦就没有收获。痛苦不是放弃之前努力的借口。

Flutter 有助于降低创建同时支持 Android 和 iOS 的应用程序的阈值,但它并不能使您同时掌握 Android 和 iOS 应用程序生态系统。这是因为 Flutter 是两种操作系统的一种抽象层,所以它隐藏了它们的实现。因此,您需要不断学习如何创建 Android 和 iOS 原生应用程序,以掌握两者的所有功能。

除了直接访问设备功能(传感器、摄像头等)之外,您还可以使用 Flutter。这是一个不错的选择。

What do you think guys. Is it a good idea or should I just stick with kotlin for android apps only? Thanks

前端需要学习Flutter、Java、kotlin。并尝试学习后端的php、golang或其他语言。因为您的下一个 Android 项目将需要前端和后端。

关于android - 如果我只做 android 开发,使用 flutter 是个好主意吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57154230/

相关文章:

Flutter Dio : How to Upload Image?

flutter - 购买重复,不会被报告

flutter - 如何通过 Flutter 中的 url 从网络图像中获取 Uint8List?

android - ContentObserver 没有调用

安卓工作室安装

android - android 浏览器和 firefox 的 css

android - 基于Build Variant修改App名称的Gradle-only解决方案

android - 修改默认模拟器

flutter - 类的BuildContext

flutter - Flutter:如何通过ToggleButtons对ListView进行排序