mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-06-24 14:20:37 -04:00
wallpapers and ui cleanup
This commit is contained in:
parent
77c68aa45f
commit
6bd60207d8
32 changed files with 17947 additions and 150 deletions
|
@ -1,6 +1,7 @@
|
|||
import 'dart:async';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:veilid_support/veilid_support.dart';
|
||||
|
||||
import 'account_manager/account_manager.dart';
|
||||
|
@ -8,6 +9,8 @@ import 'app.dart';
|
|||
import 'tools/tools.dart';
|
||||
import 'veilid_processor/veilid_processor.dart';
|
||||
|
||||
List<String> rootAssets = [];
|
||||
|
||||
class VeilidChatGlobalInit {
|
||||
VeilidChatGlobalInit._();
|
||||
|
||||
|
@ -28,14 +31,22 @@ class VeilidChatGlobalInit {
|
|||
logger: (message) => log.debug('DHTRecordPool: $message'));
|
||||
}
|
||||
|
||||
// Initialize repositories
|
||||
// Initialize repositories
|
||||
Future<void> _initializeRepositories() async {
|
||||
await AccountRepository.instance.init();
|
||||
}
|
||||
|
||||
// Initialize asset manifest
|
||||
static Future<void> loadAssetManifest() async {
|
||||
final assetManifest = await AssetManifest.loadFromAssetBundle(rootBundle);
|
||||
rootAssets = assetManifest.listAssets();
|
||||
}
|
||||
|
||||
static Future<VeilidChatGlobalInit> initialize() async {
|
||||
final veilidChatGlobalInit = VeilidChatGlobalInit._();
|
||||
|
||||
await loadAssetManifest();
|
||||
|
||||
log.info('Initializing Veilid');
|
||||
await veilidChatGlobalInit._initializeVeilid();
|
||||
log.info('Initializing Repositories');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue