-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Closed
Labels
frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
Using a ListView with variable size items (expandable) and a TextField input leads to:
flutter: ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
flutter: The following assertion was thrown building NotificationListener<KeepAliveNotification>:
flutter: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2756 pos 14:
flutter: '_debugUltimatePreviousSiblingOf(after, equals: _firstChild)': is not true.
I'm using the beta branch v0.4.4 (tested with master as well).
To reproduce:
Follow this gist
- Tap an Item to expand.
- Tap the TextField to get focus
- Scroll down (3 strong swipes should be enough)
- Tap a random item to expand.
You should be hitting the assertion, in debug mode. Running in release, the assertion is not verified but the list gets clipped at the top.
This might be related to #18063: Same assertion but a different context.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.