Skip to content

Instantly share code, notes, and snippets.

@li9ht
Created December 1, 2021 01:41
Show Gist options
  • Save li9ht/ed69a725101f3d0c945a55f7ae684563 to your computer and use it in GitHub Desktop.
Save li9ht/ed69a725101f3d0c945a55f7ae684563 to your computer and use it in GitHub Desktop.
import FlutterPluginRegistrant
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
lazy var flutter_engine = FlutterEngine(name: "flutter_engine")
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
flutter_engine.run()
GeneratedPluginRegistrant.register(with: self.flutter_engine)
return true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment