TalaoDAO / talao-wallet

An open source SSI wallet prpposed as a white label solution - EBSI conformant
https://talao.io
Apache License 2.0
12 stars 5 forks source link

splash screen freeze issue #222

Closed bibash28 closed 2 years ago

bibash28 commented 2 years ago

Splash screen freezes for 5 seconds

hawkbee1 commented 2 years ago

The issue is here:

    final result = await Future.any([
      DIDKitProvider.instance.verifyCredential(vcStr, optStr),
      Future.delayed(const Duration(seconds: 4))
    ]);

verifyCredential is a future but is handled as a synchronous call, thus freezing the application. Some thread about this kind of issues: https://github.com/dart-lang/sdk/issues/37022 https://github.com/dart-lang/sdk/issues/48532 https://stackoverflow.com/questions/65865190/flutter-dart-ffi-aplication-freezes-during-processing-external-library-metho