refactor: Minor chatlist refactoring

This commit is contained in:
Christian Pauly 2022-11-02 09:57:06 +01:00
commit f026976c17
2 changed files with 15 additions and 16 deletions

View file

@ -1,9 +1,8 @@
import 'dart:async';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_app_lock/flutter_app_lock.dart';
import 'package:matrix/matrix.dart';
import 'package:universal_html/html.dart' as html;
import 'package:fluffychat/utils/client_manager.dart';
@ -17,12 +16,8 @@ void main() async {
// To make sure that the parts of flutter needed are started up already, we need to ensure that the
// widget bindings are initialized already.
WidgetsFlutterBinding.ensureInitialized();
FlutterError.onError =
(FlutterErrorDetails details) => Zone.current.handleUncaughtError(
details.exception,
details.stack ?? StackTrace.current,
);
Logs().nativeColors = !PlatformInfos.isIOS;
final clients = await ClientManager.getClients();
if (PlatformInfos.isMobile) {