Questions tagged [flutter-add-to-app]

For questions relating to adding flutter to existing iOS or Android apps. Use this tag in combination with the general [flutter] tag. If your question applies to Flutter more generally, use the [flutter] tag only.

Flutter provides methods of integrating Flutter with an existing app when it's not practical to completely rewrite the app in Flutter. The process of doing this is documented here.

34 questions
1
vote
2 answers

How to add a FlutterViewController to a UIViewController

All the documentation that I can find for Flutter's Add-to-App demonstrates how to push/segue/present a newly created FlutterViewController. I need to add a flutter view to a tab within a tabbar. I tried changing my class's super class from…
mrgnhnt96
  • 3,562
  • 1
  • 17
  • 36
1
vote
0 answers

How to use flutter plugins on Native code

I'm trying to use a flutter library that I developed on native code. It uses device_info_plus. However, for certain plugins, you need to update your build.gradle dependencies (Managing plugins and dependencies in add-to-app) I believe this package…
Felipe Bpm
  • 58
  • 6
1
vote
0 answers

Dart Unhandled Exception: NoSuchMethodError: No top-level getter 'xx' declared.Could not run the run main Dart entrypoint

Steps to reproduce NO.1 Create the following Dart program: (1) main.dart import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); @pragma('vm:entry-point') void test() => runApp(const MyApp()); class MyApp extends…
1
vote
0 answers

CRASH: Option C - Embed application and plugin frameworks in Xcode and Flutter framework with CocoaPods

I have created a flutter module to integrate in native iOS. Later created a pod file for that module. Followed below link Option-C. https://flutter.dev/docs/development/add-to-app/ios/project-setup When I run the app on simulator it works fine but…
tauheed
  • 161
  • 1
  • 12
1
vote
1 answer

How can I use performance profiling with a Flutter add-to-app app using Flutter Attach?

I have a Flutter app that I've added to an existing Android app. I'm trying to profile this app, but my issue is that I can't seem to maintain profile mode and also use Flutter Attach to actually view the Flutter DevTools window. My process is as…
1
vote
1 answer

While adding flutter to an existing android app, How could I use a different base URL in flutter_module based on `stage`, `prod` android flavor?

I have added the flutter module in an android project, and now I want to use a different entry file for flutter based on android flavor. like:- for stage flavor : main.stage.dart prod flavor : main.prod.dart is there any way to do that? OR How could…
Ravi Sevta
  • 2,817
  • 21
  • 37
1
vote
1 answer

webview_flutter cause issues while archive in iOS

I have a flutter module and integrated in the existing iOS app (add to app). Everything was working but when I try to Archive it produces an error in webview_flutter module: bitcode bundle could not be generated because…
Let's_Create
  • 2,963
  • 3
  • 14
  • 33
1
vote
3 answers

Module not found issue with package installed in flutter module (add-to-app)

I have flutter module added to the existing iOS app. Not all but few of the packages installed (via pubspec.yaml file) could not be found by the iOS app when compiled, and I'm getting 'Module not found' error in XCode. Those problematic packages…
iAkshay
  • 1,143
  • 1
  • 13
  • 35
0
votes
0 answers

how to implement a flutter aar in android native application

I have a flutter application that I convert to module then generate a aar from it. After that I get the configuration steps to implement it in a native android project, but after following the steps I get an error in AndroidManifest that…
0
votes
0 answers

Wrap Flutter module in library to use it by other apps

I want to wrap a Flutter module in a Android/iOS library and then use it in a host app. Like a 3 layers app: 1- Flutter module 2- Android / iOS library use Flutter module 3- Android / iOS app use library The idea is distribute Android/iOS library…
0
votes
1 answer

Undefined symbol: _FlutterDefaultDartEntrypoint - Adding a Flutter screen to an iOS app and using initialRoute

The official Adding a Flutter screen to an iOS app documentation suggests that starting with Flutter version 1.22, an initial route can be set for Flutter when constructing the FlutterViewController: let flutterEngine = FlutterEngine() //…
Jani
  • 197
  • 15
0
votes
0 answers

Flutter Add-to-App use different firebase version with firebase in Native Host app

I'm integrating flutter add-to-app module into my existing native host app. Both native host app and Flutter add-to-app module are using firebase crashlytics, but they are using different version of firebase. Flutter module -> use latest firebase…
ikhsanudinhakim
  • 1,554
  • 16
  • 23
0
votes
1 answer

Flutter: How do I reset navigation stack on a Flutter engine?

I'm attempting to add a Flutter module to a native iOS app. However, I'm having an issue where Flutter's navigation stack is maintained when presenting a FlutterViewController more than once (i.e. the details screen is shown instead of the landing…
dcaraujo
  • 55
  • 1
  • 5
0
votes
0 answers

How do i resolve this error on flutter admit

Hello everyone I try to put the ads on my app in flutter but with each ad viewed it gives me an error message and I can't find how to correct it this is my error message : [I-ACS800014] Cannot get flag for unregistered flag. SDK name, flag name:…
0
votes
0 answers

flutter build aar --target-platform

I have a question with flutter build aar command line and target platform. flutter build aar has a option --target-platform When using flutter build aar --target-platform android-arm64, It seems to build an aar targeting arm64. I checked the…