1
0
mirror of https://github.com/flutter/samples.git synced 2026-03-22 04:17:50 +00:00
Files
samples/add_to_app/android_view
Matt Boetger 344740a22c Fix add_to_app sample (#2768)
The android_view add_to_app sample is currently broken.  It does not build:

* AGP version is incompatible.
* MIN_SDK is below Flutter min
* Flutter plugin module was renamed awhile ago: https://github.com/flutter/samples/pull/2714
2026-01-15 00:00:24 +00:00
..

android_view

An example of an Android app that integrates a Flutter add-to-app module at a view level.

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_using_plugin/
  flutter pub get

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

Getting Started

For more information about Flutter, check out flutter.dev.

For instructions on how to integrate Flutter modules into your existing applications, see Flutter's add-to-app documentation.