mirror of
https://github.com/flutter/flutter.git
synced 2026-02-14 06:45:56 +08:00
This reverts commit 21fab6f960a6fd2702bca2501032dd16f34fe114.
This commit is contained in:
parent
883c1fe68c
commit
117407b0fa
@ -239,7 +239,7 @@ class RenderSliverList extends RenderSliverMultiBoxAdaptor {
|
||||
if (child == null || indexOf(child!) != index) {
|
||||
// We are missing a child. Insert it (and lay it out) if possible.
|
||||
child = insertAndLayoutChild(childConstraints,
|
||||
after: trailingChildWithLayout!,
|
||||
after: trailingChildWithLayout,
|
||||
parentUsesSize: true,
|
||||
);
|
||||
if (child == null) {
|
||||
|
||||
@ -481,11 +481,12 @@ abstract class RenderSliverMultiBoxAdaptor extends RenderSliver
|
||||
@protected
|
||||
RenderBox? insertAndLayoutChild(
|
||||
BoxConstraints childConstraints, {
|
||||
required RenderBox after,
|
||||
required RenderBox? after,
|
||||
bool parentUsesSize = false,
|
||||
}) {
|
||||
assert(_debugAssertChildListLocked());
|
||||
final int index = indexOf(after) + 1;
|
||||
assert(after != null);
|
||||
final int index = indexOf(after!) + 1;
|
||||
_createOrObtainChild(index, after: after);
|
||||
final RenderBox? child = childAfter(after);
|
||||
if (child != null && indexOf(child) == index) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user