mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
fd6b2e198c
* Use Xcode build configurations to drive Flutter build mode * Proper check wrt local_engine, print error if profile mode misisng * Remove unused code, update tests, fix template problem, update warning * fix up warning * add explanatory dev comment * fix whitespace * missing words, change lambda arrow to function body * error indentation * Test early exits for xcode_backend.sh * only on macOS, use right test * Update error messages * case insensitive compare for build config * Update gallery podfile * update projects to add profile configuration * make compatible with flavors * add missing plist files * add FLUTTER_FRAMEWORK_DIR back, set swift version for profile, tell Podfile about profile |
||
---|---|---|
.. | ||
android | ||
assets | ||
ios | ||
lib | ||
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. For this sample you need to run pod install
from the ios
folder
before building the first time.
Android
You can open android/
in Android Studio and build the project as usual.