refactor: Minor chatlist refactoring
This commit is contained in:
parent
6dee9e7ceb
commit
f026976c17
2 changed files with 15 additions and 16 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue