forked from eatvio/eatvio_app
fix: analyzer
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:dio/dio.dart';
|
||||
import 'package:eatvio_app/core/app_router.dart';
|
||||
import 'package:eatvio_app/core/const.dart';
|
||||
import 'package:eatvio_app/core/firebase_api.dart';
|
||||
import 'package:eatvio_app/core/locator_service.dart';
|
||||
@@ -170,7 +171,7 @@ class _DevToolsScreenContentState extends State<DevToolsScreenContent> {
|
||||
// Show AlertDialog with error description
|
||||
if (mounted) {
|
||||
showDialog(
|
||||
context: context,
|
||||
context: AppRouter.navigatorKey.currentContext!,
|
||||
builder: (context) => AlertDialog(
|
||||
title: const Text('Test Failed'),
|
||||
content: SingleChildScrollView(child: Text(result.error ?? 'No error details.')),
|
||||
@@ -192,10 +193,10 @@ class _DevToolsScreenContentState extends State<DevToolsScreenContent> {
|
||||
// Show AlertDialog with error description
|
||||
if (mounted) {
|
||||
showDialog(
|
||||
context: context,
|
||||
context: AppRouter.navigatorKey.currentContext!,
|
||||
builder: (context) => AlertDialog(
|
||||
title: const Text('Test Failed'),
|
||||
content: SingleChildScrollView(child: Text(e.toString() + '\n' + stack.toString())),
|
||||
content: SingleChildScrollView(child: Text('$e\n$stack')),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
|
||||
Reference in New Issue
Block a user