mirror of
https://github.com/flutter/flutter
synced 2024-08-25 11:07:06 +00:00
Fix typo in hitTest docs (#145677)
This PR fixes the typo in the `hitTest` method documentation.
This commit is contained in:
parent
b39660df8f
commit
2851ed3202
|
@ -2708,7 +2708,7 @@ abstract class RenderBox extends RenderObject {
|
||||||
/// having been called in [hitTest] but cannot rely upon [paint] having been
|
/// having been called in [hitTest] but cannot rely upon [paint] having been
|
||||||
/// called. For example, a render object might be a child of a [RenderOpacity]
|
/// called. For example, a render object might be a child of a [RenderOpacity]
|
||||||
/// object, which calls [hitTest] on its children when its opacity is zero
|
/// object, which calls [hitTest] on its children when its opacity is zero
|
||||||
/// even through it does not [paint] its children.
|
/// even though it does not [paint] its children.
|
||||||
bool hitTest(BoxHitTestResult result, { required Offset position }) {
|
bool hitTest(BoxHitTestResult result, { required Offset position }) {
|
||||||
assert(() {
|
assert(() {
|
||||||
if (!hasSize) {
|
if (!hasSize) {
|
||||||
|
|
|
@ -1390,7 +1390,7 @@ abstract class RenderSliver extends RenderObject {
|
||||||
/// having been called in [hitTest] but cannot rely upon [paint] having been
|
/// having been called in [hitTest] but cannot rely upon [paint] having been
|
||||||
/// called. For example, a render object might be a child of a [RenderOpacity]
|
/// called. For example, a render object might be a child of a [RenderOpacity]
|
||||||
/// object, which calls [hitTest] on its children when its opacity is zero
|
/// object, which calls [hitTest] on its children when its opacity is zero
|
||||||
/// even through it does not [paint] its children.
|
/// even though it does not [paint] its children.
|
||||||
///
|
///
|
||||||
/// ## Coordinates for RenderSliver objects
|
/// ## Coordinates for RenderSliver objects
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in a new issue