docimports for painting (#151143)

Part of https://github.com/flutter/flutter/issues/150800
This commit is contained in:
Michael Goderbauer 2024-07-02 10:44:06 -07:00 committed by GitHub
parent 9ff9c67272
commit 12e3635e8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
40 changed files with 184 additions and 6 deletions

View File

@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/cupertino.dart';
/// @docImport 'package:flutter/material.dart';
library;
import 'dart:ui' as ui show lerpDouble; import 'dart:ui' as ui show lerpDouble;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';

View File

@ -2,6 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/material.dart';
/// @docImport 'package:flutter/rendering.dart';
///
/// @docImport 'text_span.dart';
/// @docImport 'text_style.dart';
library;
import 'dart:ui' show TextDirection; import 'dart:ui' show TextDirection;
export 'dart:ui' show export 'dart:ui' show

View File

@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'rounded_rectangle_border.dart';
library;
import 'dart:math' as math; import 'dart:math' as math;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';

View File

@ -2,6 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'dart:ui';
///
/// @docImport 'package:flutter/widgets.dart';
library;
import 'dart:ui' as ui; import 'dart:ui' as ui;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart' show ServicesBinding; import 'package:flutter/services.dart' show ServicesBinding;

View File

@ -2,6 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/widgets.dart';
///
/// @docImport 'box_border.dart';
/// @docImport 'box_decoration.dart';
library;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'basic_types.dart'; import 'basic_types.dart';

View File

@ -2,6 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/material.dart';
///
/// @docImport 'box_border.dart';
library;
import 'dart:math' as math; import 'dart:math' as math;
import 'dart:ui' as ui show lerpDouble; import 'dart:ui' as ui show lerpDouble;

View File

@ -2,6 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/material.dart';
///
/// @docImport 'box_decoration.dart';
library;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'basic_types.dart'; import 'basic_types.dart';

View File

@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/material.dart';
library;
import 'dart:math' as math; import 'dart:math' as math;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';

View File

@ -2,6 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/widgets.dart';
///
/// @docImport 'box_decoration.dart';
library;
import 'dart:math' as math; import 'dart:math' as math;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';

View File

@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/material.dart';
library;
import 'dart:math' as math; import 'dart:math' as math;
import 'dart:ui' as ui show Shadow, lerpDouble; import 'dart:ui' as ui show Shadow, lerpDouble;

View File

@ -2,6 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'box_border.dart';
/// @docImport 'box_decoration.dart';
/// @docImport 'oval_border.dart';
/// @docImport 'shape_decoration.dart';
library;
import 'dart:ui' as ui show lerpDouble; import 'dart:ui' as ui show lerpDouble;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';

View File

@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/rendering.dart';
library;
import 'dart:ui' show Canvas, Clip, Paint, Path, RRect, Rect, VoidCallback; import 'dart:ui' show Canvas, Clip, Paint, Path, RRect, Rect, VoidCallback;
/// Clip utilities used by [PaintingContext]. /// Clip utilities used by [PaintingContext].

View File

@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/material.dart';
library;
import 'dart:math' as math; import 'dart:math' as math;
import 'dart:ui' show Color, lerpDouble; import 'dart:ui' show Color, lerpDouble;
@ -401,7 +404,7 @@ class HSLColor {
/// ///
/// * [MaterialColor] and [MaterialAccentColor], which define Material Design /// * [MaterialColor] and [MaterialAccentColor], which define Material Design
/// primary and accent color swatches. /// primary and accent color swatches.
/// * [material.Colors], which defines all of the standard Material Design /// * [Colors], which defines all of the standard Material Design
/// colors. /// colors.
@immutable @immutable
class ColorSwatch<T> extends Color { class ColorSwatch<T> extends Color {

View File

@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'rounded_rectangle_border.dart';
library;
import 'dart:math' as math; import 'dart:math' as math;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';

View File

@ -2,6 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'dart:developer';
/// @docImport 'dart:ui';
///
/// @docImport 'borders.dart';
/// @docImport 'box_decoration.dart';
/// @docImport 'box_shadow.dart';
/// @docImport 'image_provider.dart';
/// @docImport 'shader_warm_up.dart';
/// @docImport 'shape_decoration.dart';
library;
import 'dart:io'; import 'dart:io';
import 'dart:ui' show Image, Picture, Size; import 'dart:ui' show Image, Picture, Size;

View File

@ -2,6 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/material.dart';
/// @docImport 'package:flutter/rendering.dart';
///
/// @docImport 'box_border.dart';
/// @docImport 'box_decoration.dart';
library;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'basic_types.dart'; import 'basic_types.dart';

View File

@ -2,6 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/rendering.dart';
/// @docImport 'package:flutter/widgets.dart';
///
/// @docImport 'box_decoration.dart';
/// @docImport 'image_resolution.dart';
library;
import 'dart:developer' as developer; import 'dart:developer' as developer;
import 'dart:math' as math; import 'dart:math' as math;
import 'dart:ui' as ui show FlutterView, Image; import 'dart:ui' as ui show FlutterView, Image;

View File

@ -2,6 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'dart:ui';
///
/// @docImport 'package:flutter/widgets.dart';
library;
import 'dart:ui' as ui show ViewPadding, lerpDouble; import 'dart:ui' as ui show ViewPadding, lerpDouble;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';

View File

@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'box_decoration.dart';
library;
import 'dart:math' as math; import 'dart:math' as math;
import 'dart:ui' as ui show Gradient, TextBox, lerpDouble; import 'dart:ui' as ui show Gradient, TextBox, lerpDouble;

View File

@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/material.dart';
library;
import 'dart:math' as math; import 'dart:math' as math;
import 'package:flutter/foundation.dart' show clampDouble; import 'package:flutter/foundation.dart' show clampDouble;

View File

@ -2,6 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/material.dart';
///
/// @docImport 'box_decoration.dart';
library;
import 'dart:collection'; import 'dart:collection';
import 'dart:math' as math; import 'dart:math' as math;
import 'dart:ui' as ui show Gradient, lerpDouble; import 'dart:ui' as ui show Gradient, lerpDouble;

View File

@ -2,6 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/widgets.dart';
///
/// @docImport 'binding.dart';
/// @docImport 'image_provider.dart';
library;
import 'dart:developer'; import 'dart:developer';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';

View File

@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/widgets.dart';
library;
import 'dart:async'; import 'dart:async';
import 'dart:io'; import 'dart:io';
import 'dart:math' as math; import 'dart:math' as math;
@ -15,10 +18,10 @@ import 'binding.dart';
import 'image_cache.dart'; import 'image_cache.dart';
import 'image_stream.dart'; import 'image_stream.dart';
/// Signature for the callback taken by [_createErrorHandlerAndKey]. /// Signature for the callback taken by [ImageProvider._createErrorHandlerAndKey].
typedef _KeyAndErrorHandlerCallback<T> = void Function(T key, ImageErrorListener handleError); typedef _KeyAndErrorHandlerCallback<T> = void Function(T key, ImageErrorListener handleError);
/// Signature used for error handling by [_createErrorHandlerAndKey]. /// Signature used for error handling by [ImageProvider._createErrorHandlerAndKey].
typedef _AsyncKeyErrorHandler<T> = Future<void> Function(T key, Object exception, StackTrace? stack); typedef _AsyncKeyErrorHandler<T> = Future<void> Function(T key, Object exception, StackTrace? stack);
/// Configuration information passed to the [ImageProvider.resolve] method to /// Configuration information passed to the [ImageProvider.resolve] method to
@ -645,7 +648,7 @@ abstract class ImageProvider<T extends Object> {
} }
/// A class that exists to facilitate backwards compatibility in the transition /// A class that exists to facilitate backwards compatibility in the transition
/// from [ImageProvider.load] to [ImageProvider.loadBuffer] to [ImageProvider.loadImage] /// from [ImageProvider.loadBuffer] to [ImageProvider.loadImage]
class _AbstractImageStreamCompleter extends ImageStreamCompleter {} class _AbstractImageStreamCompleter extends ImageStreamCompleter {}
/// Key for the image obtained by an [AssetImage] or [ExactAssetImage]. /// Key for the image obtained by an [AssetImage] or [ExactAssetImage].

View File

@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/widgets.dart';
library;
import 'dart:async'; import 'dart:async';
import 'dart:collection'; import 'dart:collection';

View File

@ -2,6 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'dart:ui';
///
/// @docImport 'package:flutter/widgets.dart';
///
/// @docImport 'image_cache.dart';
/// @docImport 'image_provider.dart';
library;
import 'dart:async'; import 'dart:async';
import 'dart:ui' as ui show Codec, FrameInfo, Image; import 'dart:ui' as ui show Codec, FrameInfo, Image;

View File

@ -2,6 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'dart:ui';
///
/// @docImport 'package:flutter/material.dart';
///
/// @docImport 'placeholder_span.dart';
library;
import 'dart:ui' as ui show ParagraphBuilder, StringAttribute; import 'dart:ui' as ui show ParagraphBuilder, StringAttribute;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
@ -154,7 +161,7 @@ List<InlineSpanSemanticsInformation> combineSemanticsInfo(List<InlineSpanSemanti
/// * The subclass [TextSpan] specifies text and may contain child [InlineSpan]s. /// * The subclass [TextSpan] specifies text and may contain child [InlineSpan]s.
/// * The subclass [PlaceholderSpan] represents a placeholder that may be /// * The subclass [PlaceholderSpan] represents a placeholder that may be
/// filled with non-text content. [PlaceholderSpan] itself defines a /// filled with non-text content. [PlaceholderSpan] itself defines a
/// [ui.PlaceholderAlignment] and a [TextBaseline]. To be useful, /// [PlaceholderAlignment] and a [TextBaseline]. To be useful,
/// [PlaceholderSpan] must be extended to define content. An instance of /// [PlaceholderSpan] must be extended to define content. An instance of
/// this is the [WidgetSpan] class in the widgets library. /// this is the [WidgetSpan] class in the widgets library.
/// * The subclass [WidgetSpan] specifies embedded inline widgets. /// * The subclass [WidgetSpan] specifies embedded inline widgets.

View File

@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/material.dart';
library;
import 'dart:ui' show lerpDouble; import 'dart:ui' show lerpDouble;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';

View File

@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/rendering.dart';
library;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:vector_math/vector_math_64.dart'; import 'package:vector_math/vector_math_64.dart';

View File

@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/material.dart';
library;
import 'dart:math' as math; import 'dart:math' as math;
import 'basic_types.dart'; import 'basic_types.dart';

View File

@ -2,6 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'box_border.dart';
/// @docImport 'box_decoration.dart';
/// @docImport 'shape_decoration.dart';
library;
import 'dart:ui' as ui show lerpDouble; import 'dart:ui' as ui show lerpDouble;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';

View File

@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/material.dart';
library;
import 'dart:ui' as ui show PlaceholderAlignment; import 'dart:ui' as ui show PlaceholderAlignment;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';

View File

@ -2,6 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'box_border.dart';
/// @docImport 'box_decoration.dart';
/// @docImport 'shape_decoration.dart';
library;
import 'dart:ui' as ui show lerpDouble; import 'dart:ui' as ui show lerpDouble;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';

View File

@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/widgets.dart';
library;
import 'dart:developer'; import 'dart:developer';
import 'dart:ui' as ui; import 'dart:ui' as ui;

View File

@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/material.dart';
library;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'basic_types.dart'; import 'basic_types.dart';

View File

@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'shape_decoration.dart';
library;
import 'dart:ui' as ui show lerpDouble; import 'dart:ui' as ui show lerpDouble;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';

View File

@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/material.dart';
library;
import 'dart:math' as math; import 'dart:math' as math;
import 'dart:ui' as ui show lerpDouble; import 'dart:ui' as ui show lerpDouble;

View File

@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'text_span.dart';
library;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'basic_types.dart'; import 'basic_types.dart';

View File

@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/widgets.dart';
library;
import 'dart:math' show max; import 'dart:math' show max;
import 'dart:ui' as ui show import 'dart:ui' as ui show
BoxHeightStyle, BoxHeightStyle,

View File

@ -2,6 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'dart:ui';
///
/// @docImport 'package:flutter/rendering.dart';
/// @docImport 'package:flutter/widgets.dart';
library;
import 'dart:ui' as ui show Locale, LocaleStringAttribute, ParagraphBuilder, SpellOutStringAttribute, StringAttribute; import 'dart:ui' as ui show Locale, LocaleStringAttribute, ParagraphBuilder, SpellOutStringAttribute, StringAttribute;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';

View File

@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
/// @docImport 'package:flutter/widgets.dart';
library;
import 'dart:collection'; import 'dart:collection';
import 'dart:ui' as ui show import 'dart:ui' as ui show
ParagraphStyle, ParagraphStyle,
@ -270,7 +273,7 @@ const String _kColorBackgroundWarning = 'Cannot provide both a backgroundColor a
/// ///
/// {@tool snippet} /// {@tool snippet}
/// The [foreground] property also allows effects such as gradients to be /// The [foreground] property also allows effects such as gradients to be
/// applied to the text. Here we provide a [Paint] with a [ui.Gradient] /// applied to the text. Here we provide a [Paint] with a [Gradient]
/// shader. /// shader.
/// ///
/// ![](https://flutter.github.io/assets-for-api-docs/assets/widgets/text_gradient.png) /// ![](https://flutter.github.io/assets-for-api-docs/assets/widgets/text_gradient.png)