Created
December 8, 2020 12:08
-
-
Save AbedElazizShe/f9a826a02f7a7e908d31a2595ab31931 to your computer and use it in GitHub Desktop.
AppDelegate
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 UIKit | |
import Flutter | |
@UIApplicationMain | |
@objc class AppDelegate: FlutterAppDelegate { | |
lazy var flutterEngine = FlutterEngine(name: "MyApp") | |
override func application( | |
_ application: UIApplication, | |
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? | |
) -> Bool { | |
// Runs the default Dart entrypoint with a default Flutter route. | |
flutterEngine.run() | |
// Used to connect plugins (only if you have plugins with iOS platform code). | |
GeneratedPluginRegistrant.register(with: self.flutterEngine) | |
return super.application(application, didFinishLaunchingWithOptions: launchOptions) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment