You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
samples/experimental/add_to_app
xster fde7a0aefe
small random notes (#137)
5 years ago
..
SimpleAndroidApp Adds an Android app to the add2app experimental sample (#133) 5 years ago
SimpleIOSExample Remove bitcode=NO from add-to-app flows (#140) 5 years ago
example_module small random notes (#137) 5 years ago
README.md small random notes (#137) 5 years ago

README.md

Add-to-App Sample

The Add-to-App sample is designed to build with Flutter's master channel and the latest version of CocoaPods. See the README in the experimental directory for details.

This directory contains a bunch of Android and iOS projects that each import a standalone Flutter module called example_module.

Goals for this sample

  • Show developers how to add Flutter to their existing applications.

The important bits

example_module

This is the Flutter module that'll be added to all the individual projects in the add_to_app folder.

The first time you download this repo, you need to first resolve this module's dependencies by running:

cd example_module
flutter packages get

SimpleAndroidApp

An Android application that imports example_module and uses it to display a FlutterActivity containing widgets from the module. This project brings in the Flutter module's Android host wrapper as a gradle sub-module.

To run, open the SimpleAndroidApp folder in Android Studio and press the run button.

SimpleIOSExample

An iOS application that imports example_module and uses it to display a FlutterViewController containing widgets from the module. This project uses CocoaPods, so prior to running it for the first time, use this command to set up the workspace file:

cd ../SimpleIOSExample
pod install

Then open SimpleIOSExample/SimpleIOSExample.xcworkspace with Xcode. This workspace will have the Flutter module linked in as a dependent CocoaPod.

Questions/issues

If you have a general question about incorporating Flutter into an existing iOS or Android app, the best places to go are:

If you run into an issue with the sample itself, please file an issue in the main Flutter repo.