31 lines
1.1 KiB
Dart
31 lines
1.1 KiB
Dart
import 'dart:isolate';
|
|
|
|
import 'package:aves/services/common/services.dart';
|
|
import 'package:aves/widgets/aves_app.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
void main() {
|
|
// HttpClient.enableTimelineLogging = true; // enable network traffic logging
|
|
// debugPrintGestureArenaDiagnostics = true;
|
|
|
|
// Invert oversized images (debug mode only)
|
|
// cf https://flutter.dev/docs/development/tools/devtools/inspector
|
|
// but unaware of device pixel ratio as of Flutter 2.2.1: https://github.com/flutter/flutter/issues/76208
|
|
//
|
|
// MaterialApp.checkerboardOffscreenLayers
|
|
// cf https://flutter.dev/docs/perf/rendering/ui-performance#checking-for-offscreen-layers
|
|
//
|
|
// MaterialApp.checkerboardRasterCacheImages
|
|
// cf https://flutter.dev/docs/perf/rendering/ui-performance#checking-for-non-cached-images
|
|
//
|
|
// flutter run --profile --trace-skia
|
|
|
|
initPlatformServices();
|
|
|
|
Isolate.current.addErrorListener(RawReceivePort((pair) {
|
|
final List<dynamic> errorAndStacktrace = pair;
|
|
reportService.recordError(errorAndStacktrace.first, errorAndStacktrace.last);
|
|
}).sendPort);
|
|
|
|
runApp(const AvesApp());
|
|
}
|