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/add_to_app/fullscreen
Brett Morgan 9d8aa333ee
Update for Material changes & run rebuild scripts (#1412)
2 years ago
..
android_fullscreen Migrate from `jcenter` to `mavenCentral` (#1230) 3 years ago
flutter_module Update for Material changes & run rebuild scripts (#1412) 2 years ago
ios_fullscreen Drop lock files from repo (#1282) 2 years ago
README.md restructured the add to app samples (#698) 4 years ago

README.md

fullscreen

Embeds a full screen instance of Flutter into an existing iOS or Android app.

Description

These apps showcase a relatively straightforward integration of flutter_module:

  • The Flutter module is built along with the app when the app is built.
  • The Flutter engine is warmed up at app launch.
  • The Flutter view is presented with a full-screen Activity or UIViewController.
  • The Flutter view is a navigational leaf node; it does not launch any new, native Activities or UIViewControllers in response to user actions.

If you are new to Flutter's add-to-app APIs, these projects are a great place to begin learning how to use them.

tl;dr

If you're just looking to get up and running quickly, these bash commands will fetch packages and set up dependencies (note that the above commands assume you're building for both iOS and Android, with both toolchains installed):

  #!/bin/bash
  set -e

  cd flutter_module/
  flutter pub get

  # For Android builds:
  open -a "Android Studio" ../android_fullscreen # macOS only
  # Or open the ../android_fullscreen folder in Android Studio for other platforms.

  # For iOS builds:
  cd ../ios_fullscreen
  pod install
  open IOSFullScreen.xcworkspace

Requirements

  • Flutter
  • Android
    • Android Studio
  • iOS
    • Xcode
    • Cocoapods

Questions/issues

See add_to_app/README.md for further help.