Atualização de gauge
This commit is contained in:
@@ -5,6 +5,7 @@ import 'package:supabase_flutter/supabase_flutter.dart';
|
||||
import 'dart:async';
|
||||
|
||||
import 'gates/debug_launch_gate.dart';
|
||||
import '_debug_harness.dart';
|
||||
|
||||
const String supabaseUrl = 'https://mannjismlhlwaqqqnvog.supabase.co';
|
||||
const String supabaseAnonKey =
|
||||
@@ -17,16 +18,25 @@ Future<void> main() async {
|
||||
|
||||
FlutterError.onError = (details) {
|
||||
FlutterError.presentError(details);
|
||||
Zone.current.handleUncaughtError(details.exception, details.stack ?? StackTrace.current);
|
||||
Zone.current.handleUncaughtError(
|
||||
details.exception,
|
||||
details.stack ?? StackTrace.current,
|
||||
);
|
||||
};
|
||||
|
||||
runZonedGuarded(() async {
|
||||
await Supabase.initialize(url: supabaseUrl, publishableKey: supabaseAnonKey);
|
||||
runApp(const MyApp());
|
||||
}, (error, stack) {
|
||||
debugPrint('UNCAUGHT: $error');
|
||||
debugPrintStack(stackTrace: stack);
|
||||
});
|
||||
runZonedGuarded(
|
||||
() async {
|
||||
await Supabase.initialize(
|
||||
url: supabaseUrl,
|
||||
publishableKey: supabaseAnonKey,
|
||||
);
|
||||
runApp(const MyApp());
|
||||
},
|
||||
(error, stack) {
|
||||
debugPrint('UNCAUGHT: $error');
|
||||
debugPrintStack(stackTrace: stack);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
@@ -58,7 +68,7 @@ class MyApp extends StatelessWidget {
|
||||
],
|
||||
supportedLocales: const [Locale('pt', 'PT'), Locale('pt', 'BR')],
|
||||
locale: const Locale('pt', 'PT'),
|
||||
home: const DebugLaunchGate(),
|
||||
home: const DebugHarness(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user