show<T> static method
- BuildContext context
Displays a LogView wrapped in a ModalPopup.
Implementation
static Future<T?> show<T>(BuildContext context) async {
final route = DialogRoute<T>(
context: context,
builder: (_) => LogView(),
settings: RouteSettings(name: 'LogView'),
barrierColor:
DialogTheme.of(context).barrierColor ??
Theme.of(context).dialogTheme.barrierColor ??
Colors.black54,
);
router.obscuring.add(route);
try {
return await Navigator.of(context, rootNavigator: true).push<T>(route);
} finally {
router.obscuring.remove(route);
}
}