Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: multica-agent <github@multica.ai>
24 lines
640 B
Dart
24 lines
640 B
Dart
import 'dart:async';
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:openim_common/openim_common.dart';
|
|
|
|
import 'app.dart';
|
|
import 'company/config/bootstrap.dart';
|
|
|
|
void main() {
|
|
runZonedGuarded(() {
|
|
FlutterError.onError = (FlutterErrorDetails details) {
|
|
FlutterError.presentError(details);
|
|
Logger.print('FlutterError: ${details.exception.toString()}, ${details.stack.toString()}');
|
|
};
|
|
|
|
Config.init(() async {
|
|
await CompanyBootstrap.install();
|
|
runApp(const ChatApp());
|
|
});
|
|
}, (error, stackTrace) {
|
|
Logger.print('FlutterError: ${error.toString()}, ${stackTrace.toString()}');
|
|
});
|
|
}
|