Flutter 2 更新记录

我们为 Flutter 2 做了如下重大变更,您可利用 "dart fix" 命令自动缓解其中的许多内容:

  • 61366 继续对 clipBehavior 进行重大变更

    https://github.com/flutter/flutter/pull/61366

  • 66700 将默认 FittedBox 的 clipBehavior 更改为无

    https://github.com/flutter/flutter/pull/66700

  • 68905 从 Cupertino 颜色 API 中移除 nullOk 参数

    https://github.com/flutter/flutter/pull/68905

  • 69808 从 Scaffold.of 和 ScaffoldMessenger.of 中移除  nullOk 参数,为两者创建 maybeOf

    https://github.com/flutter/flutter/pull/68908

  • 68910 从 Router.of 中移除 nullOk 参数,使其返回非空值

    https://github.com/flutter/flutter/pull/68910

  • 68911 在 Localizations 中加入 maybeLocaleOf 方法

    https://github.com/flutter/flutter/pull/68911

  • 68736 从Media.queryOf 中移除 nullOK 参数

    https://github.com/flutter/flutter/pull/68736

  • 68917 从 Focus.of, FocusTraversalOrder.of 和 FocusTraversalGroup.of 中移除 nullOK

    https://github.com/flutter/flutter/pull/68917

  • 68921 从 Shortcuts.of, Actions.find, and Actions.handler 中移除 nullOK

    https://github.com/flutter/flutter/pull/68921

  • 68925 从 AnimatedList.of 和 SliverAnimatedList.of 中移除 nullOK

    https://github.com/flutter/flutter/pull/68925

  • 69620 从 BuildContext 中删除已弃用的方法

    https://github.com/flutter/flutter/pull/69620

  • 72017 删除已弃用的 CupertinoTextThemeData.brightness

    https://github.com/flutter/flutter/pull/72017

  • 72395 删除已弃用的 [PointerEnterEvent, PointerExitEvent].fromHoverEvent

    https://github.com/flutter/flutter/pull/72395

  • 72532 删除已弃用的 showDialog.child

    https://github.com/flutter/flutter/pull/72532

  • 72890 删除已弃用的 Scaffold.resizeToAvoidBottomPadding

    https://github.com/flutter/flutter/pull/72890

  • 72893 删除已弃用的 WidgetsBinding.[deferFirstFrameReport, allowFirstFrameReport]

    https://github.com/flutter/flutter/pull/72893

  • 72901 删除已弃用的 StatefulElement.inheritFromElement

    https://github.com/flutter/flutter/pull/72901

  • 72903 删除已弃用的元素方法

    https://github.com/flutter/flutter/pull/72903

  • 73604 删除已弃用的 CupertinoDialog

    https://github.com/flutter/flutter/pull/73604

  • 73745 从 Cupertino[Sliver]NavigationBar 中删除已弃用的 actionsForegroundColor

    https://github.com/flutter/flutter/pull/73745

  • 73746 删除已弃用的 ButtonTheme.bar

    https://github.com/flutter/flutter/pull/73746

  • 73747 删除 Span 弃用项

    https://github.com/flutter/flutter/pull/73747

  • 73748 删除已弃用的 RenderView.scheduleInitialFrame

    https://github.com/flutter/flutter/pull/73748

  • 73749 删除已弃用的 Layer.findAll

    https://github.com/flutter/flutter/pull/73749

  • 75657 在 Localizations.localeOf 移除残留的 nullOK 参数

    https://github.com/flutter/flutter/pull/74657

  • 74680 从 Actions.invoke 移除 nullOK 参数,并添加 Actions.maybeInvoke 方法

    https://github.com/flutter/flutter/pull/74680

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值