Movatterモバイル変換


[0]ホーム

URL:


Skip to main content

docs.flutter.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.

Learn more

Flutter 3.41 is live! Check out theFlutter 3.41 blog post!

MouseTracker moved to rendering

MouseTracker and related symbols moved to the rendering package.

Important

Summary

#

MouseTracker and related symbols are moved from thegestures package, resulting in error messages such as undefined classes or methods. Import them fromrendering package instead.

Context

#

Prior to this changeMouseTracker was part of thegestures package. This brought troubles when we found out that code related toMouseTracker often wanted to import from therendering package.

SinceMouseTracker turned out to be more connected torendering thangestures, we have moved it and its related code torendering.

Description of change

#

The filemouse_tracking.dart has been moved from thegestures package torendering. All symbols in the said file have been moved without keeping backward compatibility.

Migration guide

#

If you see error of "Undefined class" or "Undefined name" of the following symbols:

You should add the following import:

dart
import'package:flutter/rendering.dart';

Timeline

#

Landed in version: 1.16.3
In stable release: 1.17

References

#

API documentation:

Relevant issues:

Relevant PR:

Was this page's content helpful?

Unless stated otherwise, the documentation on this site reflects Flutter 3.38.6. Page last updated on 2025-10-30.View source orreport an issue.


[8]ページ先頭

©2009-2026 Movatter.jp