Skip to content
Boring Doc
Stable release

What's new in Flutter 2.5

21 verified changes from the official breaking-change guides, release notes and hotfix changelog for the 2.5 series (latest patch 2.5.3, Oct 15, 2021).

  1. 2.5.0
    Sep 8, 2021
    10 changes
  2. 2.5.1
    Sep 17, 2021
    5 changes
  3. 2.5.2
    Sep 30, 2021
    3 changes
  4. 2.5.3
    Oct 15, 2021
    3 changes

Sources: release notes 2.5.0, breaking changes, CHANGELOG.md

BreakingHigh impact2.5.0 migration guide

Default drag scrolling devices

`ScrollBehavior`s now allow or disallow drag scrolling from specified `PointerDeviceKind`s. `ScrollBehavior.dragDevices`, by default, allows scrolling widgets to be dragged by all `PointerDeviceKind`s except for `PointerDeviceKind.mouse`.

Official migration guideVerified classificationFrameworkSource Details
BreakingHigh impact2.5.0 migration guide

GestureRecognizer cleanup

`OneSequenceGestureRecognizer.addAllowedPointer()` was changed to take a `PointerDownEvent`, like its superclass. Previously, it accepted the more general `PointerEvent` type, which was incorrect.

Official migration guideVerified classificationFrameworkSource Details
BreakingHigh impact2.5.0 migration guide

Introducing package:flutter_lints

The `package:flutter_lints` defines the latest set of recommended lints that encourage good coding practices for Flutter apps, packages, and plugins. Projects created with `flutter create` using Flutter version 2.5 or newer are already enabled to use the latest set of recommended lints. Projects created prior to that version can upgrade to it with the instructions in this guide.

Official migration guideVerified classificationFrameworkSource Details
BreakingHigh impact2.5.0web migration guide

Using HTML slots to render platform views in the web

Flutter now renders all web platform views in a consistent location of the DOM, as direct children of `flt-glass-pane` (regardless of the rendering backend: `html` or `canvaskit`). Platform views are then _"slotted"_ into the correct position of the App's DOM with standard HTML features.

Official migration guideVerified classificationFrameworkSource Details

Removed

Removed
RemovedHigh impact2.5.0

Deprecated API removed after v2.2

In accordance with Flutter's Deprecation Policy, deprecated APIs that reached end of life after the 2.2 stable release have been removed.

Official migration guideVerified classificationFrameworkSource Details

Deprecated API

Deprecated

Bug fix

Bug fix