docimports for rendering library (#151958)

Part of https://github.com/flutter/flutter/issues/150800.
This commit is contained in:
Michael Goderbauer
2024-07-19 09:55:21 +02:00
committed by GitHub
parent 0bac2be379
commit 94de6fd6a8
37 changed files with 225 additions and 30 deletions

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/widgets.dart';
///
/// @docImport 'layer.dart';
library;
import 'dart:ui' as ui show PictureRecorder, SceneBuilder, SemanticsUpdate; import 'dart:ui' as ui show PictureRecorder, SceneBuilder, SemanticsUpdate;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';

View File

@@ -2,6 +2,16 @@
// 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 'image.dart';
/// @docImport 'paragraph.dart';
/// @docImport 'proxy_box.dart';
/// @docImport 'shifted_box.dart';
/// @docImport 'sliver.dart';
/// @docImport 'viewport.dart';
library;
import 'dart:math' as math; import 'dart:math' as math;
import 'dart:ui' as ui show ViewConstraints, lerpDouble; import 'dart:ui' as ui show ViewConstraints, 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/widgets.dart';
///
/// @docImport 'stack.dart';
library;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'box.dart'; import 'box.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 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';

View File

@@ -2,6 +2,18 @@
// 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 'package:flutter/scheduler.dart';
/// @docImport 'package:flutter/widgets.dart';
///
/// @docImport 'binding.dart';
/// @docImport 'layer.dart';
/// @docImport 'proxy_box.dart';
/// @docImport 'shifted_box.dart';
/// @docImport 'view.dart';
library;
import 'box.dart'; import 'box.dart';
import 'object.dart'; import 'object.dart';

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 'flex.dart';
/// @docImport 'shifted_box.dart';
library;
import 'dart:math' as math; import 'dart:math' as math;
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/cupertino.dart';
library;
import 'dart:collection'; import 'dart:collection';
import 'dart:math' as math; import 'dart:math' as math;
import 'dart:ui' as ui show BoxHeightStyle, BoxWidthStyle, LineMetrics, TextBox; import 'dart:ui' as ui show BoxHeightStyle, BoxWidthStyle, LineMetrics, TextBox;
@@ -1278,7 +1281,7 @@ class RenderEditable extends RenderBox with RelayoutWhenSystemFontsChangeMixin,
} }
/// Collected during [describeSemanticsConfiguration], used by /// Collected during [describeSemanticsConfiguration], used by
/// [assembleSemanticsNode] and [_combineSemanticsInfo]. /// [assembleSemanticsNode].
List<InlineSpanSemanticsInformation>? _semanticsInfo; List<InlineSpanSemanticsInformation>? _semanticsInfo;
// Caches [SemanticsNode]s created during [assembleSemanticsNode] so they // Caches [SemanticsNode]s created during [assembleSemanticsNode] so they

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' 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 'stack.dart';
library;
import 'dart:ui' as ui show Color; import 'dart:ui' as ui show Color;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';

View File

@@ -2,6 +2,16 @@
// 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/services.dart';
/// @docImport 'package:flutter/widgets.dart';
///
/// @docImport 'binding.dart';
/// @docImport 'object.dart';
/// @docImport 'performance_overlay.dart';
/// @docImport 'proxy_box.dart';
/// @docImport 'view.dart';
library;
import 'dart:ui' as ui; import 'dart:ui' as ui;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
@@ -85,10 +95,10 @@ const String _flutterRenderingLibrary = 'package:flutter/rendering.dart';
/// different parents. The scene must be explicitly recomposited after such /// different parents. The scene must be explicitly recomposited after such
/// changes are made; the layer tree does not maintain its own dirty state. /// changes are made; the layer tree does not maintain its own dirty state.
/// ///
/// To composite the tree, create a [SceneBuilder] object using /// To composite the tree, create a [ui.SceneBuilder] object using
/// [RendererBinding.createSceneBuilder], pass it to the root [Layer] object's /// [RendererBinding.createSceneBuilder], pass it to the root [Layer] object's
/// [addToScene] method, and then call [SceneBuilder.build] to obtain a [Scene]. /// [addToScene] method, and then call [ui.SceneBuilder.build] to obtain a [ui.Scene].
/// A [Scene] can then be painted using [dart:ui.FlutterView.render]. /// A [ui.Scene] can then be painted using [ui.FlutterView.render].
/// ///
/// ## Memory /// ## Memory
/// ///
@@ -183,7 +193,7 @@ abstract class Layer with DiagnosticableTreeMixin {
bool _debugMutationsLocked = false; bool _debugMutationsLocked = false;
/// Whether or not this layer, or any child layers, can be rasterized with /// Whether or not this layer, or any child layers, can be rasterized with
/// [Scene.toImage] or [Scene.toImageSync]. /// [ui.Scene.toImage] or [ui.Scene.toImageSync].
/// ///
/// If `false`, calling the above methods may yield an image which is /// If `false`, calling the above methods may yield an image which is
/// incomplete. /// incomplete.
@@ -297,7 +307,7 @@ abstract class Layer with DiagnosticableTreeMixin {
/// Clears any retained resources that this layer holds. /// Clears any retained resources that this layer holds.
/// ///
/// This method must dispose resources such as [EngineLayer] and [Picture] /// This method must dispose resources such as [ui.EngineLayer] and [ui.Picture]
/// objects. The layer is still usable after this call, but any graphics /// objects. The layer is still usable after this call, but any graphics
/// related resources it holds will need to be recreated. /// related resources it holds will need to be recreated.
/// ///
@@ -740,7 +750,7 @@ abstract class Layer with DiagnosticableTreeMixin {
/// A handle to prevent a [Layer]'s platform graphics resources from being /// A handle to prevent a [Layer]'s platform graphics resources from being
/// disposed. /// disposed.
/// ///
/// [Layer] objects retain native resources such as [EngineLayer]s and [Picture] /// [Layer] objects retain native resources such as [ui.EngineLayer]s and [ui.Picture]
/// objects. These objects may in turn retain large chunks of texture memory, /// objects. These objects may in turn retain large chunks of texture memory,
/// either directly or indirectly. /// either directly or indirectly.
/// ///
@@ -802,10 +812,10 @@ class LayerHandle<T extends Layer> {
String toString() => 'LayerHandle(${_layer != null ? _layer.toString() : 'DISPOSED'})'; String toString() => 'LayerHandle(${_layer != null ? _layer.toString() : 'DISPOSED'})';
} }
/// A composited layer containing a [Picture]. /// A composited layer containing a [ui.Picture].
/// ///
/// Picture layers are always leaves in the layer tree. They are also /// Picture layers are always leaves in the layer tree. They are also
/// responsible for disposing of the [Picture] object they hold. This is /// responsible for disposing of the [ui.Picture] object they hold. This is
/// typically done when their parent and all [RenderObject]s that participated /// typically done when their parent and all [RenderObject]s that participated
/// in painting the picture have been disposed. /// in painting the picture have been disposed.
class PictureLayer extends Layer { class PictureLayer extends Layer {
@@ -1337,7 +1347,7 @@ class ContainerLayer extends Layer {
/// ///
/// This method is typically used by [addToScene] to insert the children into /// This method is typically used by [addToScene] to insert the children into
/// the scene. Subclasses of [ContainerLayer] typically override [addToScene] /// the scene. Subclasses of [ContainerLayer] typically override [addToScene]
/// to apply effects to the scene using the [SceneBuilder] API, then insert /// to apply effects to the scene using the [ui.SceneBuilder] API, then insert
/// their children using [addChildrenToScene], then reverse the aforementioned /// their children using [addChildrenToScene], then reverse the aforementioned
/// effects before returning from [addToScene]. /// effects before returning from [addToScene].
void addChildrenToScene(ui.SceneBuilder builder) { void addChildrenToScene(ui.SceneBuilder builder) {
@@ -1356,7 +1366,7 @@ class ContainerLayer extends Layer {
/// be unreliable unless the deepest layer in the chain collapses the /// be unreliable unless the deepest layer in the chain collapses the
/// `layerOffset` in [addToScene] to zero, meaning that it passes /// `layerOffset` in [addToScene] to zero, meaning that it passes
/// [Offset.zero] to its children, and bakes any incoming `layerOffset` into /// [Offset.zero] to its children, and bakes any incoming `layerOffset` into
/// the [SceneBuilder] as (for instance) a transform (which is then also /// the [ui.SceneBuilder] as (for instance) a transform (which is then also
/// included in the transformation applied by [applyTransform]). /// included in the transformation applied by [applyTransform]).
/// ///
/// For example, if [addToScene] applies the `layerOffset` and then /// For example, if [addToScene] applies the `layerOffset` and then
@@ -1865,9 +1875,9 @@ class ColorFilterLayer extends ContainerLayer {
} }
} }
/// A composite layer that applies an [ImageFilter] to its children. /// A composite layer that applies an [ui.ImageFilter] to its children.
class ImageFilterLayer extends OffsetLayer { class ImageFilterLayer extends OffsetLayer {
/// Creates a layer that applies an [ImageFilter] to its children. /// Creates a layer that applies an [ui.ImageFilter] to its children.
/// ///
/// The [imageFilter] property must be non-null before the compositing phase /// The [imageFilter] property must be non-null before the compositing phase
/// of the pipeline. /// of the pipeline.

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' as math; import 'dart:math' as math;
import 'package:flutter/animation.dart'; import 'package:flutter/animation.dart';
@@ -247,18 +250,18 @@ class RenderListWheelViewport
/// A value smaller than 1 means items at the edges of the cylinder are /// A value smaller than 1 means items at the edges of the cylinder are
/// entirely contained inside the viewport. /// entirely contained inside the viewport.
/// ///
/// A value larger than 1 means angles less than ±[pi] / 2 from the /// A value larger than 1 means angles less than ±[math.pi] / 2 from the
/// center of the cylinder are visible. /// center of the cylinder are visible.
/// ///
/// The same number of children will be visible in the viewport regardless of /// The same number of children will be visible in the viewport regardless of
/// the [diameterRatio]. The number of children visible is based on the /// the [diameterRatio]. The number of children visible is based on the
/// viewport's length along the main axis divided by the children's /// viewport's length along the main axis divided by the children's
/// [itemExtent]. Then the children are evenly distributed along the visible /// [itemExtent]. Then the children are evenly distributed along the visible
/// angles up to ±[pi] / 2. /// angles up to ±[math.pi] / 2.
/// ///
/// Just as it's impossible to stretch a paper to cover the an entire /// Just as it's impossible to stretch a paper to cover the an entire
/// half of a cylinder's surface where the cylinder has the same diameter /// half of a cylinder's surface where the cylinder has the same diameter
/// as the paper's length, choosing a [diameterRatio] smaller than [pi] /// as the paper's length, choosing a [diameterRatio] smaller than [math.pi]
/// will leave same gaps between the children. /// will leave same gaps between the children.
/// ///
/// Defaults to an arbitrary but aesthetically reasonable number of 2.0. /// Defaults to an arbitrary but aesthetically reasonable number of 2.0.

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 'binding.dart';
library;
import 'dart:collection' show LinkedHashMap; import 'dart:collection' show LinkedHashMap;
import 'dart:ui'; import 'dart:ui';

View File

@@ -2,6 +2,16 @@
// 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 'box.dart';
/// @docImport 'proxy_box.dart';
/// @docImport 'view.dart';
/// @docImport 'viewport.dart';
library;
import 'dart:ui' as ui show PictureRecorder; import 'dart:ui' as ui show PictureRecorder;
import 'package:flutter/animation.dart'; import 'package:flutter/animation.dart';
@@ -4685,7 +4695,7 @@ abstract class _InterestingSemanticsFragment extends _SemanticsFragment {
/// Adds the geometric information of `ancestor` to this object. /// Adds the geometric information of `ancestor` to this object.
/// ///
/// Those information are required to properly compute the value for /// Those information are required to properly compute the value for
/// [SemanticsNode.transform], [SemanticsNode.clipRect], and /// [SemanticsNode.transform], [SemanticsNode.parentSemanticsClipRect], and
/// [SemanticsNode.rect]. /// [SemanticsNode.rect].
/// ///
/// Ancestors have to be added in order from [owner] up until the next /// Ancestors have to be added in order from [owner] up until the next
@@ -4699,7 +4709,7 @@ abstract class _InterestingSemanticsFragment extends _SemanticsFragment {
/// the semantics tree. /// the semantics tree.
/// ///
/// The root node is available as the only element in the Iterable returned by /// The root node is available as the only element in the Iterable returned by
/// [children]. /// [_children].
class _RootSemanticsFragment extends _InterestingSemanticsFragment { class _RootSemanticsFragment extends _InterestingSemanticsFragment {
_RootSemanticsFragment({ _RootSemanticsFragment({
required super.owner, required super.owner,
@@ -4818,7 +4828,7 @@ class _IncompleteSemanticsFragment extends _InterestingSemanticsFragment {
/// ///
/// If [markAsExplicit] was not called before this fragment is added to /// If [markAsExplicit] was not called before this fragment is added to
/// another fragment it will merge [config] into the parent's [SemanticsNode] /// another fragment it will merge [config] into the parent's [SemanticsNode]
/// and add its [children] to it. /// and add its [_children] to it.
/// ///
/// If [markAsExplicit] was called before adding this fragment to another /// If [markAsExplicit] was called before adding this fragment to another
/// fragment it will create a new [SemanticsNode]. The newly created node will /// fragment it will create a new [SemanticsNode]. The newly created node will
@@ -4827,7 +4837,7 @@ class _IncompleteSemanticsFragment extends _InterestingSemanticsFragment {
/// Similarly, the new node will also take over the children that otherwise /// Similarly, the new node will also take over the children that otherwise
/// would have been added to the parent's [SemanticsNode]. /// would have been added to the parent's [SemanticsNode].
/// ///
/// After a call to [markAsExplicit] the only element returned by [children] /// After a call to [markAsExplicit] the only element returned by [_children]
/// is the newly created node and [config] will return null as the fragment /// is the newly created node and [config] will return null as the fragment
/// no longer wants to merge any semantic information into the parent's /// no longer wants to merge any semantic information into the parent's
/// [SemanticsNode]. /// [SemanticsNode].

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 'editable.dart';
library;
import 'dart:collection'; import 'dart:collection';
import 'dart:math' as math; import 'dart:math' as math;
import 'dart:ui' as ui show BoxHeightStyle, BoxWidthStyle, Gradient, LineMetrics, PlaceholderAlignment, Shader, TextBox, TextHeightBehavior; import 'dart:ui' as ui show BoxHeightStyle, BoxWidthStyle, Gradient, LineMetrics, PlaceholderAlignment, Shader, TextBox, TextHeightBehavior;
@@ -1037,7 +1042,7 @@ class RenderParagraph extends RenderBox with ContainerRenderObjectMixin<RenderBo
} }
/// Collected during [describeSemanticsConfiguration], used by /// Collected during [describeSemanticsConfiguration], used by
/// [assembleSemanticsNode] and [_combineSemanticsInfo]. /// [assembleSemanticsNode].
List<InlineSpanSemanticsInformation>? _semanticsInfo; List<InlineSpanSemanticsInformation>? _semanticsInfo;
@override @override

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 'box.dart'; import 'box.dart';

View File

@@ -2,6 +2,8 @@
// 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 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:flutter/gestures.dart'; import 'package:flutter/gestures.dart';

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 'proxy_sliver.dart';
/// @docImport 'sliver.dart';
library;
import 'dart:ui' as ui show Color, Gradient, Image, ImageFilter; import 'dart:ui' as ui show Color, Gradient, Image, ImageFilter;
import 'package:flutter/animation.dart'; import 'package:flutter/animation.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 'proxy_box.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,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/gestures.dart';
/// @docImport 'package:flutter/material.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,16 @@
// 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 'package:flutter/painting.dart';
///
/// @docImport 'binding.dart';
/// @docImport 'box.dart';
/// @docImport 'debug.dart';
/// @docImport 'object.dart';
library;
/// Service extension constants for the rendering library. /// Service extension constants for the rendering library.
/// ///
/// These constants will be used when registering service extensions in the /// These constants will be used when registering service extensions in the

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 'proxy_box.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,16 @@
// 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 'proxy_box.dart';
/// @docImport 'sliver_fill.dart';
/// @docImport 'sliver_grid.dart';
/// @docImport 'sliver_list.dart';
/// @docImport 'sliver_padding.dart';
/// @docImport 'sliver_persistent_header.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 'sliver_list.dart';
library;
import 'dart:math' as math; import 'dart:math' as math;
import 'box.dart'; import 'box.dart';

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 'sliver_fill.dart';
/// @docImport 'sliver_list.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,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 'sliver_fixed_extent_list.dart';
/// @docImport 'sliver_list.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/widgets.dart';
library;
import 'dart:math' as math; import 'dart:math' as math;
import 'package:vector_math/vector_math_64.dart'; import 'package:vector_math/vector_math_64.dart';

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 'sliver_fixed_extent_list.dart';
/// @docImport 'sliver_grid.dart';
library;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'box.dart'; import 'box.dart';

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 'sliver_grid.dart';
/// @docImport 'sliver_list.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/widgets.dart';
library;
import 'dart:math' as math; import 'dart:math' as math;
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 'package:flutter/animation.dart'; import 'package:flutter/animation.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' as math; import 'dart:math' as math;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';

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 'flow.dart';
/// @docImport 'proxy_box.dart';
library;
import 'dart:math' as math; import 'dart:math' as math;
import 'dart:ui' show lerpDouble; import 'dart: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 'package:flutter/material.dart';
library;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:flutter/painting.dart' hide Border; import 'package:flutter/painting.dart' hide Border;

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/semantics.dart';
/// @docImport 'package:flutter/widgets.dart';
/// @docImport 'package:flutter_test/flutter_test.dart';
library;
import 'dart:io' show Platform; import 'dart:io' show Platform;
import 'dart:ui' as ui show FlutterView, Scene, SceneBuilder, SemanticsUpdate; import 'dart:ui' as ui show FlutterView, Scene, SceneBuilder, SemanticsUpdate;
@@ -24,14 +29,14 @@ class ViewConfiguration {
/// and a [devicePixelRatio] of 1.0. /// and a [devicePixelRatio] of 1.0.
/// ///
/// [ViewConfiguration.fromView] is a more convenient way for deriving a /// [ViewConfiguration.fromView] is a more convenient way for deriving a
/// [ViewConfiguration] from a given [FlutterView]. /// [ViewConfiguration] from a given [ui.FlutterView].
const ViewConfiguration({ const ViewConfiguration({
this.physicalConstraints = const BoxConstraints(maxWidth: 0, maxHeight: 0), this.physicalConstraints = const BoxConstraints(maxWidth: 0, maxHeight: 0),
this.logicalConstraints = const BoxConstraints(maxWidth: 0, maxHeight: 0), this.logicalConstraints = const BoxConstraints(maxWidth: 0, maxHeight: 0),
this.devicePixelRatio = 1.0, this.devicePixelRatio = 1.0,
}); });
/// Creates a view configuration for the provided [FlutterView]. /// Creates a view configuration for the provided [ui.FlutterView].
factory ViewConfiguration.fromView(ui.FlutterView view) { factory ViewConfiguration.fromView(ui.FlutterView view) {
final BoxConstraints physicalConstraints = BoxConstraints.fromViewConstraints(view.physicalConstraints); final BoxConstraints physicalConstraints = BoxConstraints.fromViewConstraints(view.physicalConstraints);
final double devicePixelRatio = view.devicePixelRatio; final double devicePixelRatio = view.devicePixelRatio;
@@ -51,7 +56,7 @@ class ViewConfiguration {
/// ///
/// These constraints are enforced in [toPhysicalSize] when translating /// These constraints are enforced in [toPhysicalSize] when translating
/// the logical size of the root render object back to physical pixels for /// the logical size of the root render object back to physical pixels for
/// the [FlutterView.render] method. /// the [ui.FlutterView.render] method.
final BoxConstraints physicalConstraints; final BoxConstraints physicalConstraints;
/// The pixel density of the output surface. /// The pixel density of the output surface.
@@ -61,7 +66,7 @@ class ViewConfiguration {
/// ///
/// The matrix translates points from the local coordinate system of the /// The matrix translates points from the local coordinate system of the
/// app (in logical pixels) to the global coordinate system of the /// app (in logical pixels) to the global coordinate system of the
/// [FlutterView] (in physical pixels). /// [ui.FlutterView] (in physical pixels).
Matrix4 toMatrix() { Matrix4 toMatrix() {
return Matrix4.diagonal3Values(devicePixelRatio, devicePixelRatio, 1.0); return Matrix4.diagonal3Values(devicePixelRatio, devicePixelRatio, 1.0);
} }
@@ -81,10 +86,10 @@ class ViewConfiguration {
/// Transforms the provided [Size] in logical pixels to physical pixels. /// Transforms the provided [Size] in logical pixels to physical pixels.
/// ///
/// The [FlutterView.render] method accepts only sizes in physical pixels, but /// The [ui.FlutterView.render] method accepts only sizes in physical pixels, but
/// the framework operates in logical pixels. This method is used to transform /// the framework operates in logical pixels. This method is used to transform
/// the logical size calculated for a [RenderView] back to a physical size /// the logical size calculated for a [RenderView] back to a physical size
/// suitable to be passed to [FlutterView.render]. /// suitable to be passed to [ui.FlutterView.render].
/// ///
/// By default, this method just multiplies the provided [Size] with the /// By default, this method just multiplies the provided [Size] with the
/// [devicePixelRatio] and constraints the results to the /// [devicePixelRatio] and constraints the results to the
@@ -198,7 +203,7 @@ class RenderView extends RenderObject with RenderObjectWithChildMixin<RenderBox>
return configuration.logicalConstraints; return configuration.logicalConstraints;
} }
/// The [FlutterView] into which this [RenderView] will render. /// The [ui.FlutterView] into which this [RenderView] will render.
ui.FlutterView get flutterView => _view; ui.FlutterView get flutterView => _view;
final ui.FlutterView _view; final ui.FlutterView _view;
@@ -365,10 +370,10 @@ class RenderView extends RenderObject with RenderObjectWithChildMixin<RenderBox>
} }
} }
/// Sends the provided [SemanticsUpdate] to the [FlutterView] associated with /// Sends the provided [ui.SemanticsUpdate] to the [ui.FlutterView] associated with
/// this [RenderView]. /// this [RenderView].
/// ///
/// A [SemanticsUpdate] is produced by a [SemanticsOwner] during the /// A [ui.SemanticsUpdate] is produced by a [SemanticsOwner] during the
/// [EnginePhase.flushSemantics] phase. /// [EnginePhase.flushSemantics] phase.
void updateSemantics(ui.SemanticsUpdate update) { void updateSemantics(ui.SemanticsUpdate update) {
_view.updateSemantics(update); _view.updateSemantics(update);

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 'package:flutter/widgets.dart';
///
/// @docImport 'list_wheel_viewport.dart';
/// @docImport 'sliver_fixed_extent_list.dart';
/// @docImport 'sliver_grid.dart';
/// @docImport 'sliver_list.dart';
library;
import 'dart:math' as math; import 'dart:math' as math;
import 'package:flutter/animation.dart'; import 'package:flutter/animation.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 'sliver.dart';
/// @docImport 'sliver_persistent_header.dart';
/// @docImport 'viewport.dart';
library;
import 'package:flutter/animation.dart'; import 'package:flutter/animation.dart';
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:math' as math; import 'dart:math' as math;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';