From 776efc20d8d03d030f1d4cb545bcd5b1ce1703f6 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Wed, 26 Jun 2024 16:12:05 -0700 Subject: [PATCH] Adding `@docImport`s to the `animation` library (#150798) Part of https://github.com/flutter/flutter/issues/150800. I turned on the `comment_references` lint and looked at what needed fixing inside of the `animation` library. There are a couple of places where for some reason adding a docImport didn't fix the `comment_references` warning: --- packages/flutter/lib/src/animation/animation.dart | 2 ++ packages/flutter/lib/src/animation/animation_controller.dart | 2 ++ packages/flutter/lib/src/animation/animation_style.dart | 3 +++ packages/flutter/lib/src/animation/animations.dart | 2 ++ packages/flutter/lib/src/animation/curves.dart | 3 +++ packages/flutter/lib/src/animation/tween.dart | 3 +++ 6 files changed, 15 insertions(+) diff --git a/packages/flutter/lib/src/animation/animation.dart b/packages/flutter/lib/src/animation/animation.dart index df20e42681..64bf8a70f6 100644 --- a/packages/flutter/lib/src/animation/animation.dart +++ b/packages/flutter/lib/src/animation/animation.dart @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter/widgets.dart'; +library; import 'package:flutter/foundation.dart'; diff --git a/packages/flutter/lib/src/animation/animation_controller.dart b/packages/flutter/lib/src/animation/animation_controller.dart index 2d6130f85f..19dd393ae2 100644 --- a/packages/flutter/lib/src/animation/animation_controller.dart +++ b/packages/flutter/lib/src/animation/animation_controller.dart @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter/widgets.dart'; +library; import 'dart:ui' as ui show lerpDouble; diff --git a/packages/flutter/lib/src/animation/animation_style.dart b/packages/flutter/lib/src/animation/animation_style.dart index 07894da700..6c243c8ab8 100644 --- a/packages/flutter/lib/src/animation/animation_style.dart +++ b/packages/flutter/lib/src/animation/animation_style.dart @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter/material.dart'; +library; + import 'package:flutter/foundation.dart'; import 'curves.dart'; diff --git a/packages/flutter/lib/src/animation/animations.dart b/packages/flutter/lib/src/animation/animations.dart index 152761ecb7..518ef24daa 100644 --- a/packages/flutter/lib/src/animation/animations.dart +++ b/packages/flutter/lib/src/animation/animations.dart @@ -2,6 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter/widgets.dart'; +library; import 'dart:math' as math; diff --git a/packages/flutter/lib/src/animation/curves.dart b/packages/flutter/lib/src/animation/curves.dart index ba80e1bec5..83f5188380 100644 --- a/packages/flutter/lib/src/animation/curves.dart +++ b/packages/flutter/lib/src/animation/curves.dart @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter/material.dart'; +library; + import 'dart:math' as math; import 'dart:ui'; diff --git a/packages/flutter/lib/src/animation/tween.dart b/packages/flutter/lib/src/animation/tween.dart index 59ac6f1b0f..b9eb74d651 100644 --- a/packages/flutter/lib/src/animation/tween.dart +++ b/packages/flutter/lib/src/animation/tween.dart @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +/// @docImport 'package:flutter/material.dart'; +library; + import 'dart:ui' show Color, Rect, Size; import 'package:flutter/foundation.dart';