-
-
Save yaizudamashii/883f1454c3ceae4ec2139896a3e1b0b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.app.Application | |
import io.flutter.embedding.engine.FlutterEngine | |
import io.flutter.embedding.engine.FlutterEngineCache | |
import io.flutter.embedding.engine.dart.DartExecutor | |
class Application : Application() { | |
override fun onCreate() { | |
super.onCreate() | |
// app initializations... | |
passcodeFlutterEngine = FlutterEngine(this) | |
passcodeFlutterEngine.dartExecutor.executeDartEntrypoint( | |
DartExecutor.DartEntrypoint.createDefault() | |
) | |
FlutterEngineCache | |
.getInstance() | |
.put("passcodeFlutterEngine", passcodeFlutterEngine) | |
informationTabFlutterEngine = FlutterEngine(this) | |
informationTabFlutterEngine.dartExecutor.executeDartEntrypoint( | |
DartExecutor.DartEntrypoint.createDefault() | |
) | |
FlutterEngineCache | |
.getInstance() | |
.put("informationTabFlutterEngine", informationTabFlutterEngine) | |
qrcodeFlutterEngine = FlutterEngine(this) | |
qrcodeFlutterEngine.dartExecutor.executeDartEntrypoint( | |
DartExecutor.DartEntrypoint.createDefault() | |
) | |
FlutterEngineCache | |
.getInstance() | |
.put("qrcodeFlutterEngine", qrcodeFlutterEngine) | |
} | |
companion object { | |
lateinit var context: Context | |
lateinit var passcodeFlutterEngine : FlutterEngine | |
lateinit var informationTabFlutterEngine : FlutterEngine | |
lateinit var qrcodeFlutterEngine : FlutterEngine | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment