File tree 3 files changed +16
-3
lines changed 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ class TextParentData extends ParentData with ContainerParentDataMixin<RenderBox>
71
71
}
72
72
73
73
@override
74
- String toString () => 'widget: $span , ${offset == null ? "not laid out" : "offset: $offset " }' ;
74
+ String toString () => 'widget: $span , ${offset == null ? "not laid out" : "offset: $offset " }' ;
75
75
}
76
76
77
77
/// A mixin that provides useful default behaviors for text [RenderBox] es
Original file line number Diff line number Diff line change @@ -1514,7 +1514,20 @@ abstract class ParentDataWidget<T extends ParentData> extends ProxyWidget {
1514
1514
/// that [applyParentData] will write to.
1515
1515
///
1516
1516
/// This is only used in error messages to tell users what widget typically
1517
- /// wraps this ParentDataWidget.
1517
+ /// wraps this [ParentDataWidget] .
1518
+ ///
1519
+ /// ## Implementations
1520
+ ///
1521
+ /// The returned type should be a subclass of `RenderObjectWidget` .
1522
+ ///
1523
+ /// ```dart
1524
+ /// @override
1525
+ /// Type get debugTypicalAncestorWidgetClass => FrogJar;
1526
+ /// ```
1527
+ ///
1528
+ /// If the "typical" parent is generic (`Foo<T>` ), consider specifying either
1529
+ /// a typical type argument (e.g. `Foo<int>` if `int` is typically how the
1530
+ /// type is specialized), or specifying the upper bound (e.g. `Foo<Object?>` ).
1518
1531
Type get debugTypicalAncestorWidgetClass;
1519
1532
1520
1533
Iterable <DiagnosticsNode > _debugDescribeIncorrectParentDataType ({
Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ class _WidgetSpanParentData extends ParentDataWidget<TextParentData> {
290
290
}
291
291
292
292
@override
293
- Type get debugTypicalAncestorWidgetClass => RenderInlineChildrenContainerDefaults ;
293
+ Type get debugTypicalAncestorWidgetClass => RichText ;
294
294
}
295
295
296
296
// A RenderObjectWidget that automatically applies text scaling on inline
You can’t perform that action at this time.
0 commit comments