49 questions
0
votes
0
answers
42
views
Can a Flutter module be integrated as an AAR/XCFramework into another Flutter app to encapsulate implementation logic?
I'm exploring the possibility of creating a Flutter module that can be built as an AAR (Android) and XCFramework (iOS), and then integrated into another Flutter app as a binary dependency, similar to ...
0
votes
0
answers
54
views
How to integrate a Flutter module into a Flutter host app without exposing Dart source code?
I'm integrating a Flutter module (built as an .aar) into a Flutter host app. The goal is to keep the module's Dart code hidden (like an SDK), while still allowing UI launch and data exchange via ...
0
votes
1
answer
77
views
Uploading aar files to google artifact registry
I have a Flutter module for my native Android project that I have built an AAR file for.
Now I want to do this automatically using my GitLab.ci file and then upload it to Google Artifact Registry.
The ...
0
votes
0
answers
9
views
Facing MissingPluginException with Flutter Module in Host Android App
I’m currently working on integrating a Flutter module into an existing Android project and am facing an issue with MethodChannels. I’ve made some progress but hit a roadblock and would appreciate your ...
2
votes
0
answers
271
views
Flutter Crash - Cannot execute operation because FlutterJNI is not attached to native
I have integrated flutter into Native Android app as Module. In this implementation I have extended the FlutterFragment and with Cached Engine. This custom flutter fragment is being used inside ...
1
vote
0
answers
235
views
Failed to lookup symbol 'TfLiteInterpreterOptionsCreate': dlsym(RTLD_DEFAULT, TfLiteInterpreterOptionsCreate): symbol not found
I reported an error while exporting tflite_flutter as framework through the flutter module to the iOS native project.
environment:
flutter 3.7.0,xcode 14
dependencies:
tflite_flutter 0.10.4
Unhandled ...
0
votes
1
answer
232
views
Settings.gradle include project based on build variant
I have a flutter module and integrated that in my native module. You can see the integration code below. In my native app, I have four flavors "dev", "debug", "uat", &...
1
vote
1
answer
267
views
How to launch flavour of flutter module from native side?
I'm using flutter module to add some screens in my native iOS app. same thing is used on android side as well. Now I want to add dev, prod flavour to the app. I've managed to do so in flutter module ...
0
votes
0
answers
38
views
How do you share a private module between a GUI program and the CLI version on a Dart/Flutter project?
I have a CLI tool writer in Dart. How can I make a GUI tool that shares the same codebase or module so they can both deliver the same functionality? So they can also update each other and evolve in ...
0
votes
0
answers
34
views
Firebase phone Authenication through otp
how to solve this error E/FirebaseAuth( 4187): [SmsRetrieverHelper] SMS verification code request failed: unknown status code: 17010 null
Phone number verification i added android device verification ...
1
vote
0
answers
140
views
Flutter Plugin project could not find C++ libraries
TL;DR;
Flutter Plugin project which uses .framework as iOS library, could not locate some of cpp libraries such as <list>
I am working on a Flutter Application which contains platform native ...
0
votes
0
answers
650
views
Create a native SDK using Flutter
I'm with a task but I don't know how to start this
I searched a lot, there are very few articles about that, but none of then worked
I need to create a SDK (library aar, framework) in flutter to be ...
0
votes
0
answers
172
views
Flutter modules in Xamarin project?
I have a Xamarin application that I want to use as a simple portal to other applications. I wanted to know if it was possible to integrate flutter modules into it.
The Flutter documentation (https://...
0
votes
1
answer
262
views
Flutter module can't connect internet
Recently i working integrate flutter module to android native app, but i got problem.
With debug app, flutter module working normal with internet.
But after release app , flutter module cant connect ...
2
votes
1
answer
2k
views
How to add dart-define in build.gradle on a Flutter Plugin?
I have the following app structure:
- Main app (Android native)
- Flutter module (aar)
- Flutter plugin
The main Android App uses a Flutter module that contains some Flutter plugins.
One of this ...
0
votes
0
answers
317
views
Flutter module used in iOS native app: Unhandled Exception with shared_preferences initialization - PlatformException(channel-error)
I have been searching on Stack Overflow for a long time, but I haven't found a suitable solution. Most of the answers either don't work or don't provide a clear answer, such as this post: ...
2
votes
0
answers
635
views
Making a Dart function callable from JavaScript
Making a Dart function callable from JavaScript
I'm trying to integrate a flutter module into a PWA application. I would like to access one Dart function from PWA using JS after the flutter web build ...
2
votes
0
answers
200
views
Flutter module in native ios app is not completely closing the module
I'm facing issue after integrating flutter module into a native ios app. After closing the flutter module either by using SystemNavigator.pop(animated:true), when trying to open it again from native ...
1
vote
1
answer
137
views
How to handle back button on appBar of Scaffold layout in flutter module and navigate to previous page on the host app
I have a question, I have to create a flutter module and integrate it directly into the host app. I want to handle the back button on flutter UI by clicking it and navigating to the previous page on ...
0
votes
1
answer
200
views
Can i see class in android project which is define in flutter module
I want to define a class in flutter module and in this class there will be 2 functions.
I want to create instance for this class in android project and set settings for this class (with constructor).
...
0
votes
1
answer
109
views
how to pass function as prop to aar in android
I develop the flutter package and in this package one of class get function argument.
When I use this package in another flutter app, I can send function as prop to this package .
Now I just want to ...
1
vote
0
answers
244
views
Missing required attribute: dependency groupId while using flutter module .aar file in android
I have integrated flutter plugin inside flutter module and it is working fine as expected but when an .aar file is generated and imported in another android app below error apprears
Missing required ...
1
vote
0
answers
49
views
Android project building fails after adding Flutter module
I'm trying to add a Flutter module to an existing Android app, I tried as Docs step by step https://docs.flutter.dev/.../add-to.../android/project-setup.
but it fails when running and throws this ...
0
votes
1
answer
43
views
Flutter same container different content animation
In a container widget I am showing a text widget for displaying content. I am using same container but the text content differs based on user selection. when user choose different option is it ...
2
votes
1
answer
637
views
How to use firebase in flutter module?
I have embedded the flutter module in my iOS project. I use firebase in native project. Now I want to use firebase in flutter module too. But when I try to call Firebase.initializeApp() in flutter ...
1
vote
0
answers
740
views
Creating Flutter AAR file using different lib/main_XXX.dart file
Everyone. So I am trying to integrate Flutter module inside App(Android app).
So, I have followed this tutorial and everything worked correctly.
To build an aar file the command is
cd some/path/...
0
votes
0
answers
231
views
Integrating Flutter Module into Native App
I’m sorry this will be a long question. I need advice from you guys. Currently, I’m working on integrating the Flutter module into iOS App. But, before explaining the main problem, I will describe ...
0
votes
1
answer
950
views
XCode 13.3 Pod Install Removes Path To Flutter Module
we are using Flutter as a Module embedded in our project, and we have some problems.
When upgraded to xcode 13.3 , we run into an issue :
Running pod install in the iOS project removes the path to the ...
0
votes
1
answer
625
views
Flutter submodule in Android project - packages not resolved
I am trying to add a Flutter module to my Android project.
For that, I follow the relevant flutter docs, and everything seemingly works fine.
However, when I run a Gradle sync after following all the ...
0
votes
1
answer
800
views
Add one flutter app to another existing flutter app
Is there any way to merge a smaller flutter app to another flutter app?
I'm finding ways to merge the flutter app to a native android app, but can we do it to another flutter app?
1
vote
1
answer
1k
views
flutter: sqflite database getting locked though using transaction on Android
I have native Android application which send Map() data to embedded flutter module every 50ms through EventChannel, and flutter module add received data to Database (flutter module has no UI).
In ...
2
votes
1
answer
2k
views
Build flutter app with different flutter modules
I have my native application, which we want to change into flutter. For that, we have decided to build multiple flutter modules and add that to the existing native application. I am not sure whether ...
1
vote
0
answers
681
views
Missing kernel_blob.bin file in Release folder when build Flutter code into frameworks
I want to create a Flutter module, then I will embbed it to native iOS project.
I'm following Option B in this document of Flutter to create a module.
As in the document, I executed this command:
...
8
votes
2
answers
3k
views
How i can add flutter module to android app with AndroidStudio BumbleBee
I can't find "Flutter Module" in Modules
0
votes
1
answer
983
views
How to back from flutter module with data to native app ? I know how to send data from android to the flutter module! I just wanna the reverse
This is the code to navigate:
startActivity(
FlutterActivity
.withNewEngine()
.initialRoute("/my_route")
.build(this)
)
0
votes
1
answer
2k
views
How to run any 1 module without having to run main.dart?
How to run any one module in Flutter without having to run main.dart?
2
votes
1
answer
2k
views
No Flutter module found
In my android studio, I've installed the flutter & Dart plugin. I can create a new flutter project. I want to create a flutter module in my android project. But the android studio is unable to ...
1
vote
1
answer
2k
views
Flutter Error: VM snapshot invalid and could not be inferred from settings. - When want to include Flutter module in android project
Use this Option B in link to include Flutter model.
The project starts, but as soon as it comes to initializing the FlutterEngine, this error is thrown.
2021-12-10 13:54:09.300 12446-12446/ua.silpo....
0
votes
0
answers
953
views
How can I overide a build function with flutter Mixins
When I try to attach a mixin to a flutter state, I want to overide the build function of the state like what we do in widget inheritence, however, every time when I tried to do so. it gives me an ...
2
votes
1
answer
3k
views
Flutter Module won't build in iOS
I'm getting this error when trying to build iOS app with flutter module injected in it. I added the FLUTTER_ROOT and flutter dependencies in pod are successfully installed but the build fails getting ...
3
votes
1
answer
374
views
How to add Google Maps to a flutter module that is used inside a native iOS app
I have a native iOS app which is integrating a flutter module for a few features.
Now for a new feature, I need to integrate Google maps inside the flutter module.
The documentation says we need to ...
0
votes
0
answers
290
views
I use flutter_modular and I need to dynamically create the custom transitions. How I can do this?
I use flutter_modular and I need to dynamically create the custom transitions. How I can do this?
I have one more question. How can I do Modular.to.pushReplacementNamed without route name?
3
votes
1
answer
2k
views
Flutter module get dependencies used into another module
I'm developing a Flutter project to study modularization. So, for the first time, I'm setting the project with core, design and feature modules, besides the project module. I'm gonna use provider for ...
1
vote
0
answers
122
views
how to transfer data from flutter module to android app
I've created an android app that can receive a full screen from a flutter module. now, I want to get a text from that flutter module not just the full screen. so does anyone has any idea?
PS:I know ...
0
votes
1
answer
153
views
adding flutter module to existing android studio app
I have installed flutter and need to add it to my app because I want one of it's features, and also have added a new flutter module to my app, now how should I change the existing libraries(ex: ...
0
votes
1
answer
2k
views
how to get the current position of the device in a flutter module?
I'm developing A Flutter module for android application, that module use Geolocatore to get the current position of the device. but when the flutter module get initializie I Got this error:
...
1
vote
2
answers
637
views
How to check if flutter app runs in standalone mode or as a module inside of a native app?
I'm developing a flutter module for an existing native android app. I made some interop with MethodChannel. Now, for test purposes, I would like to run my module as a standalone app. To do so I mocked ...
1
vote
3
answers
9k
views
Response error handling for Rest API's in flutter
This is the Model class for Response data when I will get the Result Value as Null then it's giving me an exception which I'm unable to handle so please hep me with this.
//This Model has created by ...
1
vote
0
answers
838
views
How to run all tests of all modules in Flutter
I'm working on an app with several modules built by other teams in my company.
Is there a way that we can run the tests in the app and all the imported modules with one command?
We need it for CI.