I have a native Android App and I want to try Flutter to display all my Android layouts.
I tried the MethodChannel but I feel like I'm missing something.
Can someone explain to me please how can I display a simple view (that exist already in Android xml layout) on Flutter?
Message channels are for passing data and events between Flutter and native app.
What you need is a platform view and AndroidView class in your particular case.
The steps to add the Android view are following:
Create Flutter Plugin (you can do this in Android Studio directly)
Register your view in the Android app
Add your AndroidView your Widget in Flutter app
More information on how to add Flutter to existing app can be found here.
Related
For Native Android We are using Appium with webdriverio and UIAutomator2, but when we use same of Flutter, it is not working properly. We are not able to send Keys or identify particular element.
When we use Appium Inspector on Native App side we are able to inspect each and every element on UI properly, whereas for Flutter it is combining UI element in one group as it as View
I am using Flutter Version 1.22.6
I need proper solution which will work on both Native Android and Flutter
Please help.
I also need to know this, am using Appium Inspector but the flutter elements all merge together is one big element.
I can see the big element using xpath but would like to be able to see each element separately in Appium Inspector.
I am trying to setup firebase push notifications for my xamarin project, everything seems to be in order however I am currently getting a build error enter image description here
What can I try from here? I used this video on Youtube as a reference https://www.youtube.com/watch?v=7w2q2D6mR7g
I had 2 [Application] Tags within my android project. I just had to remove one.
I have a very complex flutter app with story book and everything, and I'd like to reuse the code inside my native Kotlin app, but it's a lot of screens, login and everything, and it has flutter_storybook
I've tried following the flutter docs tutorial for integrating as a module (considering just my main.dart as entry point), but I ended stuck with a black screen everytime I try to launch de FlutterActivity, is there anything more I need to do????
Is it possible somehow to display Android homescreen widget as a Flutter widget?
I've read about PlatformView widget that can embed any Android view inside Flutter app. How is it possible to do the same with homescreen widgets?
I found a github project which is only for android in flutter but
initially has much to solve the problem
This flutter_home_screen_widget_example
github repo
Also found a similar github issue26134 requesting for the same
Got two more related stackoverflow questions
questions/44120149/android-lock-screen-widget-in-flutter
questions/47870740/flutter-is-it-somehow-possible-to-create-app-widgets-android-and-today-extens#47887388
There is no official support from flutter but you can take a look at this video explaining how to create a home widget using flutter unfortunately the speak he didn't post the code. It looks like the only solution to add the app widget android code in the generated code which means you should know android development in kotlin/java.
I built an iOS app for a company i know, now I'm trying to make that same app for android. Just clicking the "Android" button in the xml file doesn't work. Do I have to rewrite the whole app again or is there some other way I can easily make that same app for android?
No, You don't need to rewrite the whole code again. But you should have to make some platform specific codes. Also some controls like Toolbar will not be available for Android. You can check the platform using Ti.Platform.osname or getOsname() method, which will return the osname(android/ios). In short, all other code will be work in android platform also.