mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-08-01 18:56:03 -04:00
refactor and move stuff
This commit is contained in:
parent
8c22bf8cc0
commit
b54868cc55
28 changed files with 500 additions and 94 deletions
|
@ -14,7 +14,7 @@ Future<String> getVeilidVersion() async {
|
|||
|
||||
// Initialize Veilid
|
||||
// Call only once.
|
||||
void _init() {
|
||||
void _initVeilid() {
|
||||
if (kIsWeb) {
|
||||
var platformConfig = VeilidWASMConfig(
|
||||
logging: VeilidWASMConfigLogging(
|
||||
|
@ -44,7 +44,6 @@ void _init() {
|
|||
}
|
||||
}
|
||||
|
||||
// Called from FlutterFlow stub initialize() function upon Main page load
|
||||
bool initialized = false;
|
||||
Processor processor = Processor();
|
||||
|
||||
|
@ -54,7 +53,7 @@ Future<void> initializeVeilid() async {
|
|||
}
|
||||
|
||||
// Init Veilid
|
||||
_init();
|
||||
_initVeilid();
|
||||
|
||||
// Startup Veilid
|
||||
await processor.startup();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue