Skip to content

FlutterMain deprecated in AppService.kt #10

@hector1980

Description

@hector1980

Hi, for future versions I think you should replace:

FlutterMain.startInitialization(this)
FlutterMain.ensureInitializationComplete(this, emptyArray<String>()) 

by

val loader = FlutterInjector.instance().flutterLoader()
loader.startInitialization(this)
loader.ensureInitializationComplete(this, emptyArray<String>())

in runDartFunction. See https://stackoverflow.com/questions/56339637/is-there-a-way-to-access-flutter-resources-from-native-code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions