mirror of
https://github.com/flutter/flutter
synced 2024-10-02 22:44:13 +00:00
86135b7774
This migrates Flutter to use the `@main` attribute introduced in Swift 5.3. The `@NSApplicationMain` attribute is deprecated and will be removed in Swift 6. See: https://github.com/apple/swift-evolution/blob/main/proposals/0383-deprecate-uiapplicationmain-and-nsapplicationmain.md This change is split into two commits: 1. |
||
---|---|---|
.. | ||
android | ||
assets | ||
ios | ||
lib | ||
macos | ||
windows | ||
.metadata | ||
pubspec.yaml | ||
README.md |
Example of embedding Flutter using FlutterView
This project demonstrates how to embed Flutter within an iOS or Android application. On iOS, the iOS and Flutter components are built with Xcode. On Android, the Android and Flutter components are built with Android Studio or Gradle.
You can read more about accessing platform and third-party services in Flutter.
iOS
You can open ios/Runner.xcworkspace
in Xcode and build the project as
usual.
Android
You can open android/
in Android Studio and build the project as usual.