Skip to content

Commit 2939d52

Browse files
goderbauervictorsanni
authored andcommitted
docimports for painting (flutter#151143)
Part of flutter#150800
1 parent 2c89d55 commit 2939d52

40 files changed

+184
-6
lines changed

packages/flutter/lib/src/painting/alignment.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'package:flutter/cupertino.dart';
6+
/// @docImport 'package:flutter/material.dart';
7+
library;
8+
59
import 'dart:ui' as ui show lerpDouble;
610

711
import 'package:flutter/foundation.dart';

packages/flutter/lib/src/painting/basic_types.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'package:flutter/material.dart';
6+
/// @docImport 'package:flutter/rendering.dart';
7+
///
8+
/// @docImport 'text_span.dart';
9+
/// @docImport 'text_style.dart';
10+
library;
11+
512
import 'dart:ui' show TextDirection;
613

714
export 'dart:ui' show

packages/flutter/lib/src/painting/beveled_rectangle_border.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'rounded_rectangle_border.dart';
6+
library;
7+
58
import 'dart:math' as math;
69

710
import 'package:flutter/foundation.dart';

packages/flutter/lib/src/painting/binding.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'dart:ui';
6+
///
7+
/// @docImport 'package:flutter/widgets.dart';
8+
library;
9+
510
import 'dart:ui' as ui;
611
import 'package:flutter/foundation.dart';
712
import 'package:flutter/services.dart' show ServicesBinding;

packages/flutter/lib/src/painting/border_radius.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'package:flutter/widgets.dart';
6+
///
7+
/// @docImport 'box_border.dart';
8+
/// @docImport 'box_decoration.dart';
9+
library;
10+
511
import 'package:flutter/foundation.dart';
612

713
import 'basic_types.dart';

packages/flutter/lib/src/painting/borders.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'package:flutter/material.dart';
6+
///
7+
/// @docImport 'box_border.dart';
8+
library;
9+
510
import 'dart:math' as math;
611
import 'dart:ui' as ui show lerpDouble;
712

packages/flutter/lib/src/painting/box_border.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'package:flutter/material.dart';
6+
///
7+
/// @docImport 'box_decoration.dart';
8+
library;
9+
510
import 'package:flutter/foundation.dart';
611

712
import 'basic_types.dart';

packages/flutter/lib/src/painting/box_decoration.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'package:flutter/material.dart';
6+
library;
7+
58
import 'dart:math' as math;
69

710
import 'package:flutter/foundation.dart';

packages/flutter/lib/src/painting/box_fit.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'package:flutter/widgets.dart';
6+
///
7+
/// @docImport 'box_decoration.dart';
8+
library;
9+
510
import 'dart:math' as math;
611

712
import 'package:flutter/foundation.dart';

packages/flutter/lib/src/painting/box_shadow.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'package:flutter/material.dart';
6+
library;
7+
58
import 'dart:math' as math;
69
import 'dart:ui' as ui show Shadow, lerpDouble;
710

packages/flutter/lib/src/painting/circle_border.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'box_border.dart';
6+
/// @docImport 'box_decoration.dart';
7+
/// @docImport 'oval_border.dart';
8+
/// @docImport 'shape_decoration.dart';
9+
library;
10+
511
import 'dart:ui' as ui show lerpDouble;
612

713
import 'package:flutter/foundation.dart';

packages/flutter/lib/src/painting/clip.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'package:flutter/rendering.dart';
6+
library;
7+
58
import 'dart:ui' show Canvas, Clip, Paint, Path, RRect, Rect, VoidCallback;
69

710
/// Clip utilities used by [PaintingContext].

packages/flutter/lib/src/painting/colors.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'package:flutter/material.dart';
6+
library;
7+
58
import 'dart:math' as math;
69
import 'dart:ui' show Color, lerpDouble;
710

@@ -401,7 +404,7 @@ class HSLColor {
401404
///
402405
/// * [MaterialColor] and [MaterialAccentColor], which define Material Design
403406
/// primary and accent color swatches.
404-
/// * [material.Colors], which defines all of the standard Material Design
407+
/// * [Colors], which defines all of the standard Material Design
405408
/// colors.
406409
@immutable
407410
class ColorSwatch<T> extends Color {

packages/flutter/lib/src/painting/continuous_rectangle_border.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'rounded_rectangle_border.dart';
6+
library;
7+
58
import 'dart:math' as math;
69

710
import 'package:flutter/foundation.dart';

packages/flutter/lib/src/painting/debug.dart

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'dart:developer';
6+
/// @docImport 'dart:ui';
7+
///
8+
/// @docImport 'borders.dart';
9+
/// @docImport 'box_decoration.dart';
10+
/// @docImport 'box_shadow.dart';
11+
/// @docImport 'image_provider.dart';
12+
/// @docImport 'shader_warm_up.dart';
13+
/// @docImport 'shape_decoration.dart';
14+
library;
15+
516
import 'dart:io';
617
import 'dart:ui' show Image, Picture, Size;
718

packages/flutter/lib/src/painting/decoration.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'package:flutter/material.dart';
6+
/// @docImport 'package:flutter/rendering.dart';
7+
///
8+
/// @docImport 'box_border.dart';
9+
/// @docImport 'box_decoration.dart';
10+
library;
11+
512
import 'package:flutter/foundation.dart';
613

714
import 'basic_types.dart';

packages/flutter/lib/src/painting/decoration_image.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'package:flutter/rendering.dart';
6+
/// @docImport 'package:flutter/widgets.dart';
7+
///
8+
/// @docImport 'box_decoration.dart';
9+
/// @docImport 'image_resolution.dart';
10+
library;
11+
512
import 'dart:developer' as developer;
613
import 'dart:math' as math;
714
import 'dart:ui' as ui show FlutterView, Image;

packages/flutter/lib/src/painting/edge_insets.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'dart:ui';
6+
///
7+
/// @docImport 'package:flutter/widgets.dart';
8+
library;
9+
510
import 'dart:ui' as ui show ViewPadding, lerpDouble;
611

712
import 'package:flutter/foundation.dart';

packages/flutter/lib/src/painting/flutter_logo.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'box_decoration.dart';
6+
library;
7+
58
import 'dart:math' as math;
69
import 'dart:ui' as ui show Gradient, TextBox, lerpDouble;
710

packages/flutter/lib/src/painting/geometry.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'package:flutter/material.dart';
6+
library;
7+
58
import 'dart:math' as math;
69

710
import 'package:flutter/foundation.dart' show clampDouble;

packages/flutter/lib/src/painting/gradient.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'package:flutter/material.dart';
6+
///
7+
/// @docImport 'box_decoration.dart';
8+
library;
9+
510
import 'dart:collection';
611
import 'dart:math' as math;
712
import 'dart:ui' as ui show Gradient, lerpDouble;

packages/flutter/lib/src/painting/image_cache.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'package:flutter/widgets.dart';
6+
///
7+
/// @docImport 'binding.dart';
8+
/// @docImport 'image_provider.dart';
9+
library;
10+
511
import 'dart:developer';
612

713
import 'package:flutter/foundation.dart';

packages/flutter/lib/src/painting/image_provider.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'package:flutter/widgets.dart';
6+
library;
7+
58
import 'dart:async';
69
import 'dart:io';
710
import 'dart:math' as math;
@@ -15,10 +18,10 @@ import 'binding.dart';
1518
import 'image_cache.dart';
1619
import 'image_stream.dart';
1720

18-
/// Signature for the callback taken by [_createErrorHandlerAndKey].
21+
/// Signature for the callback taken by [ImageProvider._createErrorHandlerAndKey].
1922
typedef _KeyAndErrorHandlerCallback<T> = void Function(T key, ImageErrorListener handleError);
2023

21-
/// Signature used for error handling by [_createErrorHandlerAndKey].
24+
/// Signature used for error handling by [ImageProvider._createErrorHandlerAndKey].
2225
typedef _AsyncKeyErrorHandler<T> = Future<void> Function(T key, Object exception, StackTrace? stack);
2326

2427
/// Configuration information passed to the [ImageProvider.resolve] method to
@@ -645,7 +648,7 @@ abstract class ImageProvider<T extends Object> {
645648
}
646649

647650
/// A class that exists to facilitate backwards compatibility in the transition
648-
/// from [ImageProvider.load] to [ImageProvider.loadBuffer] to [ImageProvider.loadImage]
651+
/// from [ImageProvider.loadBuffer] to [ImageProvider.loadImage]
649652
class _AbstractImageStreamCompleter extends ImageStreamCompleter {}
650653

651654
/// Key for the image obtained by an [AssetImage] or [ExactAssetImage].

packages/flutter/lib/src/painting/image_resolution.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'package:flutter/widgets.dart';
6+
library;
7+
58
import 'dart:async';
69
import 'dart:collection';
710

packages/flutter/lib/src/painting/image_stream.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'dart:ui';
6+
///
7+
/// @docImport 'package:flutter/widgets.dart';
8+
///
9+
/// @docImport 'image_cache.dart';
10+
/// @docImport 'image_provider.dart';
11+
library;
12+
513
import 'dart:async';
614
import 'dart:ui' as ui show Codec, FrameInfo, Image;
715

packages/flutter/lib/src/painting/inline_span.dart

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'dart:ui';
6+
///
7+
/// @docImport 'package:flutter/material.dart';
8+
///
9+
/// @docImport 'placeholder_span.dart';
10+
library;
11+
512
import 'dart:ui' as ui show ParagraphBuilder, StringAttribute;
613

714
import 'package:flutter/foundation.dart';
@@ -154,7 +161,7 @@ List<InlineSpanSemanticsInformation> combineSemanticsInfo(List<InlineSpanSemanti
154161
/// * The subclass [TextSpan] specifies text and may contain child [InlineSpan]s.
155162
/// * The subclass [PlaceholderSpan] represents a placeholder that may be
156163
/// filled with non-text content. [PlaceholderSpan] itself defines a
157-
/// [ui.PlaceholderAlignment] and a [TextBaseline]. To be useful,
164+
/// [PlaceholderAlignment] and a [TextBaseline]. To be useful,
158165
/// [PlaceholderSpan] must be extended to define content. An instance of
159166
/// this is the [WidgetSpan] class in the widgets library.
160167
/// * The subclass [WidgetSpan] specifies embedded inline widgets.

packages/flutter/lib/src/painting/linear_border.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'package:flutter/material.dart';
6+
library;
7+
58
import 'dart:ui' show lerpDouble;
69

710
import 'package:flutter/foundation.dart';

packages/flutter/lib/src/painting/matrix_utils.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'package:flutter/rendering.dart';
6+
library;
7+
58
import 'package:flutter/foundation.dart';
69
import 'package:vector_math/vector_math_64.dart';
710

packages/flutter/lib/src/painting/notched_shapes.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'package:flutter/material.dart';
6+
library;
7+
58
import 'dart:math' as math;
69

710
import 'basic_types.dart';

packages/flutter/lib/src/painting/oval_border.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5+
/// @docImport 'box_border.dart';
6+
/// @docImport 'box_decoration.dart';
7+
/// @docImport 'shape_decoration.dart';
8+
library;
9+
510
import 'dart:ui' as ui show lerpDouble;
611

712
import 'package:flutter/foundation.dart';

0 commit comments

Comments
 (0)