Questions tagged [flutter-module]

43 questions
1
vote
0 answers

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: flutter build ios-framework…
Hoang Anh Tuan
  • 370
  • 3
  • 9
1
vote
0 answers

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 how to send data from android to the flutter…
1
vote
2 answers

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 all my interop code with dummy placeholders. Now…
deviant
  • 3,539
  • 4
  • 32
  • 47
1
vote
3 answers

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 Success Responce. import…
Vivekajee
  • 21
  • 2
  • 11
1
vote
0 answers

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.
Joel Broström
  • 3,530
  • 1
  • 34
  • 61
0
votes
0 answers

Flutter ios-framework build failed issue

I have an old app which writen with flutter 1.22.6 (i know its really old) and i have to embed my app to another native app with FlutterView (i know it doesn't make sense to embed an entire app to another but customers are always right :)).…
Kimse
  • 41
  • 1
  • 6
0
votes
0 answers

Is there a way to mock flutter module API calls in native mobile application

I have a native android application with flutter module integrated in it. I want to mock flutter module API calls but getting below error in Charles proxy I am able to intercept native android API calls and modify the responses using charles but…
0
votes
0 answers

Override supportedInterfaceOrientations for FlutterViewController in Swift to make it only portrait

The goal is not restrict whole iOS application orientation, but fix it as portrait when new ViewController presents. Flutter has example how to start Flutter screen inside existing iOS app func openFlutterApp() { guard let windowScene =…
0
votes
0 answers

Integrate Firebase in a Flutter module embedded in an iOS app

Adding Firebase to a Flutter module embedded in an iOS app I have successfully integrated my Flutter module into an iOS app and have been able to build and run the app. Also, I have successfully integrated Firebase into my iOS native app. Now, I am…
Khader Murtaja
  • 425
  • 1
  • 5
  • 15
0
votes
0 answers

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: SharedPreference giving "Unable to establish connection on…
0
votes
0 answers

Can't pod install flutter module. How to install flutter module on the iOS by install_all_flutter_pods with flutter_install_all_ios_pods

I can't use install_all_flutter_pods(flutter_application_path) inside target 'Runner' do. Found the error [!] There are multiple dependencies with different sources for Flutter in Podfile: Flutter (from Flutter) Flutter (from…
0
votes
1 answer

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). And I want call the function which is define in…
0
votes
1 answer

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 learn if I use the flutter module and build the…
0
votes
0 answers

Display the Flutter module as an inline UI element in the existing iOS app

Is there any option to integrate Flutter module to an existing IOS app and show it as a fragment of UI? There's documentation about how to do it on Android but no on IOS.
aalystama
  • 31
  • 4
0
votes
1 answer

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 possible to fade the old content and show new content…