Flutter 1.7 official release

Today, we are pleased to announce yet another version of the official release - Flutter 1.7, this is a small number of important functions to update the second since the last time the release of I / O. Flutter 1.7 includes support for AndroidX meet the requirements of the application Play Store recently put forward, including a number of new and enhanced over the assembly, bug fixes and other developers have proposed.

Flutter 1.7 official release

If you have installed and use the default build stable channel (stable channel) of Flutter, to upgrade to version 1.7, you only need to run flutter upgradeto. At the same time, you can in this documentation to see how the new installation Flutter.

Support AndroidX

AndroidX is Android Jetpack team for the development, testing, packaging and publishing library and its open-source project version control to help Android apps to keep updated with the latest components without sacrificing backward compatibility. Currently AndroidX has stabilized, and many Flutter packages have been updated to support it, Flutter now supports creating a AndroidX project (new Flutter project with AndroidX) , which also reduces the integration with the Android ecosystem you need to do the work.

When creating Flutter project, you can add --androidxto ensure that the generated project file support AndroidX, more about the migration project to AndroidX information, please visit the official documentation instructions on. We are also actively working to bring support AndroidX or Jetifier for the use of Android applications AndroidX and mixed library, which will be supported as an in add-to-app, the next article will talk with to more relevant content.

支持 Android App Bundles 和 64 位的 Android 应用

从 2019 年 8 月 1 日开始,为了 target 到 Android Pie 版本,开发者们在 Google Play 上发布的应用 必须支持 64 位架构。Flutter 一直都支持生成 64 位的 Android 应用,在 1.7 版本里,我们加入了对 Android App Bundles 的支持,开发者们可以在一次提交里同时 target 到 64 位和 32 位。可通过阅读 这篇文档 了解到如何分别生成 32 位和 64 位到应用等更多内容。

新一批的 widget 和框架的功能增强

我们希望你的应用在任何平台上都可以看起来平滑自然,我们会持续在平台相关的 widgets 上投入。

如下所示了一个名为 [RangeSlider](https://github.com/flutter/flutter/pull/31681) 的 widget,帮助你在单个滑块儿上选择一组值:

Flutter 1.7 official release

RangeSlider widget 支持连续或者分散的效果

更新之后SnackBar 支持了最新的 Material 规范,文档里增加了许多 样例代码

Cupertino 是用来构建精美的 iOS 体验的 widgets 库,我们对其进行了大量的更新。特别提出的是,我们提高了 CupertinoPickerCupertinoDateTimePicker widget 的保真度,并增加了对非英语语言本地化的支持。

我们提升了 iOS 上的 文本选择和编辑体验。此外,我们新增了一个 示例,关于如何使用同一份代码库,调整不同平台的操作体验和适配。

文本渲染有了很大的提升,支持了丰富的 排版样式:包括数字表格式对齐、旧式风格数字 (tabular and old-style numbers)、斜线零 (slashed zeros)、样式集 (stylistic sets),如这个示例应用截图所示:

Flutter 1.7 official release

有了 OpenType 的字体支持,你可以用 Flutter 进行复杂的文字排版了

最后,我们加入了对 游戏控制器 的支持,会有更好玩的应用出现吗?

初心不忘

整个团队付出很多努力推出了 Flutter 1.7 正式版,我们解决了开发者们在 GitHub 上提出的 1250 多个问题

随着 Flutter 的快速增长,我们看到大家向我们报告了很多新的问题。为了保证项目过程的透明,我们一直在通过 GitHub 运行着这一套错误报告系统,但一些相对较小的项目,目前这个流程工作的并不是非常顺利。虽然我们在不想关 issue 关闭上有一些新的进展,但是过去几个月我们的 issue 还是增长的非常明显。我们也在努力增加这方面的资源配置,可以帮助我们更快的区分 bug,关闭及合并相同的 issue,以及将一些提问引导到 StackOverflow

在近期的开发者调查里,很多开发者希望我们在文档和错误信息方面有更持续的投入。一个关键部分是能够在 VSCode 和 Android Studio 里更结构化的输出错误信息,我们已经在着手 这方面的工作

我们也修复了崩溃率最高的 bug,Flutter 工具的写权限问题。Flutter 现在可以更优雅的处理写权限导致的崩溃问题,会又一个明晰的指示关于如何解决。

文档方面,我们会持续增加示例代码。与此同时,你也可以通过 Flutter create 命令直接创建示例文档,如下是命令:

flutter create --sample=widgets.Form.1 mysample

如果通过这种方式创建示例,你将在文档中的 Sample in the App 这一栏看到:

Flutter 1.7 official release

我们也会持续把每周 Flutter widgets 视频嵌入到文档中,在开发者们浏览各种 widget 的时候可以得到更全面的理解。

还有一些幕后的设施建设工作正在进行,以便 Flutter app 更好的在 macOS 和 Windows 平台运行。比如支持一些较为重要的平台操作,比如右键和一些特别的平台基建工作(比如 MSBuild 等)。不过,这些非移动平台的支持目前还没有在稳定构建渠道 (stable channel) 发布。

最后,当你在苹果电脑上开发 Flutter 应用的时候,我们支持了 新的 Xcode 构建系统,这个对新的应用是默认开启的,也同时方便 支持现有的应用

不断壮大的 Flutter 社区

一如既往,我们非常高兴看到 Flutter 在受众群体和应用场景上继续持续增长,同时我们也欣赏各种不同的 Flutter 使用方式。自 I/O 以来,Flutter 团队致力于全球范围内的各项活动:从中国的 GMTC 到纽约和墨西哥的交流会和演讲等,面对面对大家交流 Flutter 应用开发是一件特别棒的事情。

之前我们提到过Reflectly,它是一个丹麦的公司,他们在 iOS 和 Android 平台开发了非常有吸引力的应用程序。他们的应用程序被美国 iPhone 应用商店评为当日最佳应用。这也证明了 Flutter 的真正潜力远远超过实现体验流畅的应用(同时可以帮助开发者获得成功)。

<iframe src="//player.bilibili.com/player.html?aid=56686514&cid=99031924&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>

在柏林的 WeAreDevelopers 大会中,BMW 发布了他们基于 Flutter 的应用,目前已经在开发中。下面这段描述来自 Guy Duncan,他是 BMW 集团互联公司的 CTO:

通过结合 Dart 和 Flutter,我们实现了第一个真正跨平台的移动工具包;我们认为它打破了原有的游戏规则,可以平衡数字交互和物联网的功能特性。

By using mainstream tool chain, automation tools and modern programming model, we can optimize cycle latency, security, push the cost of business application features.

In addition to the application, many involved throughout the open source community resources , plug-ins , Flutter community activities and Meetup also makes Flutter become particularly alive. We will continue to focus on all kinds of interesting applications Flutter implemented based, but also very honored to share the fun together.

Flutter 1.7 official release

Source: @ damian2048

Guess you like

Origin blog.51cto.com/4208586/2429434
Recommended