mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Error message when TextSelectionOverlay finds no Overlay (#29329)
This commit is contained in:
parent
97a8120969
commit
4e84256642
@ -254,7 +254,10 @@ class TextSelectionOverlay {
|
||||
assert(context != null),
|
||||
_value = value {
|
||||
final OverlayState overlay = Overlay.of(context);
|
||||
assert(overlay != null);
|
||||
assert(overlay != null,
|
||||
'No Overlay widget exists above $context.\n'
|
||||
'Usually the Navigator created by WidgetsApp provides the overlay. Perhaps your '
|
||||
'app content was created above the Navigator with the WidgetsApp builder parameter.');
|
||||
_toolbarController = AnimationController(duration: fadeDuration, vsync: overlay);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user