mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
small random notes (#137)
This commit is contained in:
@@ -16,7 +16,24 @@ a standalone Flutter module called `example_module`.
|
|||||||
### `example_module`
|
### `example_module`
|
||||||
|
|
||||||
This is the Flutter module that'll be added to all the individual projects
|
This is the Flutter module that'll be added to all the individual projects
|
||||||
in the `add2app` folder.
|
in the `add_to_app` folder.
|
||||||
|
|
||||||
|
The first time you download this repo, you need to first resolve this
|
||||||
|
module's dependencies by running:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
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`
|
### `SimpleIOSExample`
|
||||||
|
|
||||||
@@ -26,10 +43,13 @@ uses CocoaPods, so prior to running it for the first time, use this command
|
|||||||
to set up the workspace file:
|
to set up the workspace file:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd SimpleIOSExample
|
cd ../SimpleIOSExample
|
||||||
pod install
|
pod install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Then open SimpleIOSExample/SimpleIOSExample.xcworkspace with Xcode. This
|
||||||
|
workspace will have the Flutter module linked in as a dependent CocoaPod.
|
||||||
|
|
||||||
## Questions/issues
|
## Questions/issues
|
||||||
|
|
||||||
If you have a general question about incorporating Flutter into an existing
|
If you have a general question about incorporating Flutter into an existing
|
||||||
@@ -41,4 +61,3 @@ iOS or Android app, the best places to go are:
|
|||||||
|
|
||||||
If you run into an issue with the sample itself, please file an issue
|
If you run into an issue with the sample itself, please file an issue
|
||||||
in the [main Flutter repo](https://github.com/flutter/flutter/issues).
|
in the [main Flutter repo](https://github.com/flutter/flutter/issues).
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
name: example_module
|
name: example_module
|
||||||
description: A simple module used to demo Flutter's Add2App features
|
description: A simple module used to demo Flutter's Add-to-App features
|
||||||
|
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user