ErrorSummary('No Overlay widget found${hiddenByBoundary ? ' within the closest LookupBoundary' : ''}.'),
if(hiddenByBoundary)
ErrorDescription(
'There is an ancestor Overlay widget, but it is hidden by a LookupBoundary.'
),
ErrorDescription('${debugRequiredFor?.runtimeType ?? 'Some'} widgets require an Overlay widget ancestor for correct operation.'),
ErrorDescription('${debugRequiredFor?.runtimeType ?? 'Some'} widgets require an Overlay widget ancestor for correct operation.'),
ErrorHint('The most common way to add an Overlay to an application is to include a MaterialApp, CupertinoApp or Navigator widget in the runApp() call.'),
ErrorHint('The most common way to add an Overlay to an application is to include a MaterialApp, CupertinoApp or Navigator widget in the runApp() call.'),
if(debugRequiredFor!=null)DiagnosticsProperty<Widget>('The specific widget that failed to find an overlay was',debugRequiredFor,style:DiagnosticsTreeStyle.errorProperty),
if(debugRequiredFor!=null)DiagnosticsProperty<Widget>('The specific widget that failed to find an overlay was',debugRequiredFor,style:DiagnosticsTreeStyle.errorProperty),
...
@@ -389,7 +396,7 @@ class Overlay extends StatefulWidget {
...
@@ -389,7 +396,7 @@ class Overlay extends StatefulWidget {
}
}
/// The [OverlayState] from the closest instance of [Overlay] that encloses
/// The [OverlayState] from the closest instance of [Overlay] that encloses
/// the given context, if any.
/// the given context within the closest [LookupBoundary], if any.
///
///
/// Typical usage is as follows:
/// Typical usage is as follows:
///
///
...
@@ -413,8 +420,8 @@ class Overlay extends StatefulWidget {
...
@@ -413,8 +420,8 @@ class Overlay extends StatefulWidget {