Flutter desing: CupertinoApp and MaterialApp in the same project - flutter

Is it a good practice desing an App in Flutter (for IOS and Android) to use CupertinoApp and MaterialApp in the same project?
Apparently it works as expected in the simulators (Xcode and AndroidStudio simulator), but i would like to know if it will be accepted by AppStore and PlayStore reviewers and it also will work in real devices.

As my experience you can not use cupertino app instead of material app in android real device,
So Material app is best option for work in Android and iOS.
If you are try to use cupertinoApp and run in Android Real Device then you will getting error like this.

Related

Flutter Ambient UI - What should be the optimised approach for production level responsive app in web, android and ios platform using single codebase?

I was trying out flutter platform to create a multipage website with android and ios responsiveness using single codebase for my flutter app. I've already tried some single page samples in flutter which are following,
Flutter web, android & ios using Stacked architecture & Responsive_builder
Flutter web, android & ios using MVVM & Responsive_Framework
Flutter web, android & ios using simple Getx package.
All of them are working fine, but what I want is to collect your opinions who have already created a production ready app in flutter web.
Should we consider using Navigator 2.0 for flutter web responsiveness?
Does responsive_framework package work fine if we have complex designs because I'm not confident about the font size and styling application using it?
Can we use any other app architecture, responsive package, design pattern or any other concepts for multipage production level use cases.
Any suggestions would be appreciated.
Thanks.

Flutter IOS & ANDROID Widgets Implementation

I wanted to ask about the implementation of IOS & Android Widgets for Flutter.
Current Scenario :
Basically, i have developed the app on android platform and now i want to convert it to IOS platform. Since this is my first app, i really need some experienced voice on some issues i am facing.
Questions :
1 - Is there any simple way to detect that the widgets currently used are of Android/IOS Platform ?
How can we know for sure that a specific widget is of Android platform and is not going to work on IOS platform and vice versa.
2 - If somehow we know for sure that the current widget we are using is of Android platform, then how can we find its equivalent widget to implement for IOS platform.
3 - Are these widgets specifically required when we are going to upload/publish to these platforms respective stores. For example in a scenario where i hadn't converted all of my android app widgets to ios widgets and when i try to publish the app for IOS store, does the IOS Store rejects that or not?
Any suggestions or help is greatly appreciated.
All standard widgets will work on iOS as is. Flutter paints the UI, rather than call the native APIs. You might use a plugin that does not support iOS, but I have not yet come across such a plugin on pub.dev.
If you want to write platform specific code, you can import dart:io and use the boolean Platform.isIOS or Platform.isAndroid.
Both the App Store and Play Store have specific requirements before your app is approved.
In case you really want to have Android specific widgets on Android devices and iOS specific widgets on iOS devices, then use the Flutter Platform Widgets package. This will exactly do that - drawing iOS buttons using the Cupertino library and Android buttons using the Android library (and most other widgets as well).
As #Mudassir mentioned in the other comment this is not a requirement. In case you go with the default widgets, you will have the same look on all devices (even web, Windows, etc.).

Flutter is it possible to get my app published on iOS App Store without using Cupertino widgets?

I didn't find anything regarding to my question, so Im happy about any advice.
(There is no way to show any code which would make sense)
I just finished my app which I want to release now in android and iOS app store.
I made the app with the Material Widgets but it's also of course running on my iOS device. im wondering what exactly do I have to do now to get my app on iOS app store.
Do I need to change everything to Cupertino Widgets or can I also get it published without changing everything? Is there any guide or something execept the iOS guidelines?
Thank you for your help!
what exactly do I have to do now to get my app on iOS app store.
Relax! And publish your app without any fear. It doesn't matter if you use Cupertino Widgets or Material, the thing that matters is your app should follow Apple guidelines (which doesn't mention anything about these widgets)

Making Apps using flutter

Is it possible to build a fully functioning application for iOS and Android using AndroidStudio + Flutter and FireBase alone? This is my first time trying to make a fully functioning mobile application which I want to use as I am constrained with my finances at the moment. I would appreciate the clarification.
Yes, it is possible to make both Android and IOS app using flutter and dart.
Flutter has many benefits. here some example :
Flutter hot reload helps you to build your app very fast.
User fluent. Can use app with excellent user interface design.
It's easy to use function like other OOP languages.
Update everyday with new features.
Flutter user community is increasing day by day .
Check the flutter docs for more info
Yes, Flutter can produce a fully functioning application for both iOS and Android platforms.
there are some apps built with Flutter. check them here
I am a native Android developer and I did some iOS as well. I started learning Flutter a couple of days ago and it seems promising.

The docs of firebase-app-indexing are silent on Flutter implementation

Is it just a matter of following the android and iOS settings or are there ways to make it a bit easier for those who are building apps in Flutter?
An example of a Flutter implementation of firebase-app-indexing would be fantastic.