r/FlutterDev • u/themanofthedecade • Nov 07 '19
Article Google's Stadia App is Built Using Flutter
https://9to5google-com.cdn.ampproject.org/v/s/9to5google.com/2019/11/07/google-stadia-app-play-store-download/amp/?amp_js_v=a2&_gsa=1&usqp=mq331AQCKAE%3D#referrer=https%3A%2F%2Fwww.google.com&_tf=From%20%251%24s&share=https%3A%2F%2F9to5google.com%2F2019%2F11%2F07%2Fgoogle-stadia-app-play-store-download%2F76
u/bimbo1989 Nov 07 '19
It's nice to see that Google actually believes in Flutter by using it in their projects. I'm not surprised tho, Flutter is by far the best framework I've ever used for building apps.
39
Nov 07 '19 edited Nov 07 '19
If you look at how Firebase SDK is required for the new App + Web analytics, and how well Flutter and Firebase play together... Google is definitely in early-stage-execution of attempting complete app infrastructure ownership. I'm confident Google has their full weight behind Flutter because they want to own and steer the development / analytics / and cloud computing platform direction of all mobile / desktop / web / and embedded apps.
Apple is making all the money on in-app payments. Google wants to get all the backend money on data and cloud computing - for all platforms. Flutter and firebase are leverage against AWS.
16
Nov 07 '19
IMO, there is no reason anyone should should pick Azure or AWS for app development these days. Firebase has everything you need to get started, like Crashlytics, Authentication, Test Lab, Cloud Functions, Firestore, Analytics, and more. I'm not sure anyone else can compete with this sets of tools.
15
u/paulmundt Nov 07 '19
Firebase: Coming soon to an antitrust hearing near you..
6
u/Elixane Nov 07 '19
Why? AWS is way ahead of Google Cloud? There's no antitrust issue here.
3
u/paulmundt Nov 08 '19
I am referring more to the point that increasingly forcing Firebase on people will invariably lead to a lock-up between Android (and future Fuchsia) Apps and Google Cloud. We can already see this shift happening in many of the Google-provided Flutter plugins, which have gone from functioning purely on an API level to requiring a backing Firebase project, even if no Firebase services are actually used. This is overall indicative of a greater strategic shift to pushing tighter coupling, for reasons wholly unrelated to technical necessity, and should be of concern to any competition and antitrust watchdog.
2
u/Areneboy Nov 08 '19
What Google-provided plugins are reliant on Firebase without being related to Firebase?
3
u/paulmundt Nov 08 '19
google_sign_in, for example, which up until recently had no Firebase dependency - this is at least where we ran in to this problem.
-4
u/jess-sch Nov 07 '19
Believe me, the EU only cares about big G. Everyone else is allowed to do whatever they want.
3
u/dakamojo Nov 07 '19
Price-wise both AWS and Azure are much better at scale. Both offer MANY more service options.
0
1
u/redfournine Nov 08 '19
By Azure, you mean the AppCenter? Wait, so that means Firebase has the AppCenter equivalent?
0
u/adameepoo Nov 07 '19
Support and being able to talk to a real live person is pretty valuable. In the same vein, not being shutdown randomly with no recourse is also somewhat nice
5
Nov 07 '19
Ah, yes, the “is Google still invested in this project?” game.
2
u/JehovahsNutsac Nov 08 '19
I get what you're saying and agree, but with Google .. it is kinda valid to raise an eyebrow on that subject.
2
u/ArmoredPancake Nov 08 '19
No, it's not. They shut down only consumer projects, development project has to be really, really, really unpopular for them to shut project off.
1
u/firewood010 Nov 08 '19
They know this, and this is why they are using Flutter to deliver the AdWords and Stadia apps, besides the fact that Flutter is a good framework.
2
u/mah3ndra Nov 08 '19
And the amazing thing is how the try to make so much good content for flutter as well as firebase so that you don't even need to go looking for other resources online. I started with their documentations and YouTube and it is sufficient to make you be able to learn on your own later
3
u/dafrogspeaks Nov 07 '19
How does it compare with React Native?
20
7
u/flutterbark Nov 07 '19
From my research, React Native has a lot of UI issues and in my experience Flutter is pretty much 1:1 on iOS/Android.
6
Nov 08 '19
Remember, when reading through the replies, take into account that you asked this question on the Flutter subreddit. Asking the same on the /r/reactnative subreddit would probably get you the opposite answers.
1
2
21
u/AcidNoX Nov 07 '19
My boss forced us in to using react native when we started writing cross platform apps.
I said time after time how great flutter was yet I was dismissed every time with the whole “google will axe it in a year” type thing.
So nice to say I told you so.
12
u/flutterbark Nov 07 '19
Dude must has never tried Flutter. Once you try it, you'll realize how great the UX is.
18
u/JohnGalt1718 Nov 07 '19
Stands to reason given that Flutter is the language of Fucsia. I would expect that basically everything going forward from google would be in Flutter.
20
Nov 07 '19
As is tradition in Google, they develop multiple competing tools/technologies to each other at all times :P
-9
u/JohnGalt1718 Nov 07 '19
I'm aware. But I'm also aware that fuscia uses flutter as it's language not Java (Java is legacy). Hence it's very probable going forward that most new stuff will be in flutter so they don't have to rewrite. (If fuscia ever is released)
Honestly it's one of the best reasons to use flutter there is.
9
Nov 07 '19
Flutter is not a language though :) I guess you mean Dart.
-15
u/JohnGalt1718 Nov 07 '19
No, I mean Flutter.
Java/Kotlin uses AXML which is just XAML ripped off and dumbed down.
Flutter is both the programming language (Dart) and the rendering engine because it uses code to render , not a markup language like XML or HTML. I.e. Flutter is a specific implementation of Dart which includes the rendering engine. (right now that is compiled down to NDK/JDK on Android, Swift/OC etc. on iOS, and the various other platform specific translators. In Fuchsia, there is no translation layer, Flutter is the root.)
The specific implementation of Dart that is flutter which includes the rendering engine, is what Fuchsia uses. It has no rendering language at all because it's all Dart in the flutter implementation (very similar to how WinForms works except WinForms is still compiling down to win32 whereas on Fuchsia Flutter is the root). Any 3rd parties that want to compete with Flutter on Fuchsia will have to compile to flutter (the specific implementation of Dart with UI semantics) which is not true about Android which also supports the NDK and C++ for speed because Java/Kotlin is so slow. Presumably Fuchsia will support C++ for games in a wrapper of Flutter but that's still not clear from what I've read.
10
u/ArmoredPancake Nov 07 '19
Ahaha, oh shit. That's some comedy gold right there. Really strong crack you're smoking mate.
Java/Kotlin uses AXML which is just XAML ripped off and dumbed down.
That's called XML.
Flutter is both the programming language (Dart) and the rendering engine because it uses code to render , not a markup language like XML or HTML.
I can post laughing JJJameson again and again.
I.e. Flutter is a specific implementation of Dart which includes the rendering engine.
(right now that is compiled down to NDK/JDK on Android, Swift/OC etc. on iOS, and the various other platform specific translators. In Fuchsia, there is no translation layer, Flutter is the root.)
The specific implementation of Dart that is flutter which includes the rendering engine, is what Fuchsia uses. It has no rendering language at all because it's all Dart in the flutter implementation (very similar to how WinForms works except WinForms is still compiling down to win32 whereas on Fuchsia Flutter is the root). Any 3rd parties that want to compete with Flutter on Fuchsia will have to compile to flutter (the specific implementation of Dart with UI semantics) which is not true about Android which also supports the NDK and C++ for speed because Java/Kotlin is so slow. Presumably Fuchsia will support C++ for games in a wrapper of Flutter but that's still not clear from what I've read.
Oh wow.
which is not true about Android which also supports the NDK and C++ for speed because Java/Kotlin is so slow
2
4
u/yaaaaayPancakes Nov 07 '19
Compose is written in Kotlin and has no backwards compatibility w/ Java Android apps.
2
u/JohnGalt1718 Nov 07 '19
You realize that Kotlin compiles to the JDK right? It's literally byte level compatible.
7
u/yaaaaayPancakes Nov 07 '19
Yes. But just because that's true, doesn't make interop nice.
For example, try using the MaterialDialogs library in a Java app since it's been rewritten in Kotlin. The API's are annoying, and the dev says it works but you might as well not bother. I can confirm that, it sucks using the lib in my legacy Java app now.
Compose heavily relies on Kotlin idioms and syntax, and Google has basically said it's not for use apps written in Java. Note how the tutorial doesn't mention usage in Java at all, which is completely different from every other document page on developer.android.com that gives examples in both Java and Kotlin?
-1
u/JohnGalt1718 Nov 07 '19
You're just avoiding the fact that my point is correct from the very first.
4
u/ArmoredPancake Nov 07 '19
Java is legacy only for user space. SDK itself and runtime are still and will be in Java.
Flutter cannot even save instance state, what are you talking about. It makes sense for Stadia because it's basically one screen with controls and list with games.
-4
u/JohnGalt1718 Nov 07 '19
Fuchsia is ONLY flutter with backwards compatibility for JDK. Full stop. Stadia is a simple app, but my point originally since everyone really wants to avoid being wrong about their silly assertions after that, is that it is in Google's interest to start writing everything in Flutter because come next year when the first devices come out with Fuchsia, they don't want to write it all again.
Stop distracting from the original point. My point is that Google internally will increasingly use Flutter and likely will only use Flutter for new stuff except in really special cases because their new OS to replace the disaster that is Android uses Flutter natively and by the nature of legacy compatibility all JDK based applications won't be as good and will be phased out over time.
I'm done. You want to keep up your circle jerk denying the above statement, have fun. But you've demonstrated you don't have a clue what you're talking about and instead of admitting you were wrong are doubling down on stupid statements that have no baring on my original point.
9
u/ArmoredPancake Nov 07 '19
Fuchsia is ONLY flutter with backwards compatibility for JDK.
Fuchsia is God knows what right now. And certainly not Android killer.
Full stop. Stadia is a simple app, but my point originally since everyone really wants to avoid being wrong about their silly assertions after that, is that it is in Google's interest to start writing everything in Flutter because come next year when the first devices come out with Fuchsia, they don't want to write it all again.
I mean, you're not wrong. In the future they will also probably deploy it as a Flutter web.
Stop distracting from the original point. My point is that Google internally will increasingly use Flutter and likely will only use Flutter for new stuff except in really special cases because
If you'd only stop here. You would finally make some sense.
because their new OS to replace the disaster that is Android uses Flutter natively and by the nature of legacy compatibility all JDK based applications won't be as good and will be phased out over time.
Android
Disaster
Mate, you need to redefine your definition of disaster, if you call Android a disaster
It's one of the most, if not the most, successful and crucial projects for Google.
But you've demonstrated you don't have a clue what you're talking about
Lol.
4
u/nacholicious Nov 07 '19
Well yes and no. Compose uses a special Kotlin compiler, and has no proper support for Java because it lacks the language constructs to use Compose.
Sure you could embed a full Compose UI written in Kotlin inside a Java activity, but actually using it with Java is not really possible.
-3
u/JohnGalt1718 Nov 07 '19
Point is still the same. The language of Android is jdk+ axml or ndk primatives.
The language of fuchsia is flutter. (And possibly ndk style stuff)
0
u/rymotion Nov 07 '19
Kotlin could compile that way yes, however there are nuisances as to why it wouldn’t work being hardware utilization on devices you are building on.
10
u/ArmoredPancake Nov 07 '19
A) Fuchsia is years away, and has nothing to do with Android B) the reason they used Flutter is because it needs to be crossplatform, and not because of some experimental OS
6
u/JohnGalt1718 Nov 07 '19
According to Google first fuchsia devices 2020. Not years away.
And there are a ton of ways to write cross platform, all more feature complete than flutter. (Ie video playback which is completely neglected in flutter and has full DRM, controls, subtitles etc. in react native, xamarin, nativescript and ionic.)
2
u/ArmoredPancake Nov 07 '19
Arrives and then what?
And there are a ton of ways to write cross platform, all more feature complete than flutter. (Ie video playback which is completely neglected in flutter and has full DRM, controls, subtitles etc. in react native, xamarin, nativescript and ionic.)
Lmao, you seriously compare those jokes to Flutter?
React Native
Death by a thousand cuts. RN proved that it's almost impossible to create a stable framework from billion dependencies.
Xamarin
Oh wow, nothing like Bootleg .NET VM and shitty forms that nobody uses and writes separate UI for each platform using Xamarin Native.
NativeScript, ionic
-3
u/JohnGalt1718 Nov 07 '19
Ah, a Flutter fanboi that can't have an objective conversation.
Over and out. Have a good life in your echo chamber.
4
u/ArmoredPancake Nov 07 '19
Ah, a Flutter fanboi that can't have an objective conversation.
Over and out. Have a good life in your echo chamber.
I provided objective arguments why those frameworks are shit. You haven't provided any arguments why they're viable, lol.
5
u/JohnGalt1718 Nov 07 '19
I've used all of them for production products. They all have their pluses and minuses. Flutter has plenty. (iOS skinning without special code, video player is complete shit, have to write os stuff in native language because api space isn't mapped etc. Etc. Etc.)
Right now I'm using xamarin because it has a passable (not great) video player and I can backfill additional functions at the os level without writing Java/kotlin/Swift/oc. The next project on my docket is in flutter.
I unlike a fanbois use whatever is best for the situation.
0
Nov 07 '19
[deleted]
1
u/JohnGalt1718 Nov 07 '19
For those of you reading this clown thread:
Xamarin has 100% SDK compatibility on Android and iOS. That means that you NEVER need to write Java or iOS code. You can write it ALL in C# so unlike React Native and Flutter, when you get out of the guardrails of what's available, you can customize on each platform to your heart's content without having to maintain or have devs that write Swift/Kotlin etc.
This is A HUGE savings for most teams that don't have the dev dollars to have iOS and Android specialists that write in those languages. And since in flutter you're almost guaranteed you're going to have to write OS specific code to cover all of the gaps, it's a big deal for most teams looking at Flutter.
If you're writing simple stuff, sure Flutter is fine because you never have to write Java or Swift code to make up for it's short comings, but most apps don't fall into that simplistic world so get ready to write swift and java/Kotlin.
And I think it's self-evident based on this thread that I'm not the beginner in the conversation and have vastly more experience than you at vastly more languages and environments that you do. I'm literally an expert in all of the cross platform languages that I've listed and Swift, Java and Kotlin. But hey, if you want to try and convince yourself that others are as limited as you and can't master multiple languages and environments, fill your boots. I just won't hire you in my company because arrogant (and wrong) asses such as yourself are a good way to tank productivity.
4
4
u/Areneboy Nov 08 '19
I’m a certified Xamarin developer and used it for ~2 years. Never going back, it’s a horrible experience and is lacking in almost every area. They’re so slow with releasing new C# bindings for every API update, their UI framework is untolerable, and their ambitions are unclear. The one great thing about it is the underlying .NET APIs.
3
u/megadec Nov 08 '19
I have used Xamarin extensively in the past, I personally found the video playback to be quite buggy and unreliable. Granted this was a year ago using forms, I hope it has improved vastly since then. Your comment on having 100% SDK is correct but you do need to write Swift /objc, java/kotlin code if you are looking to do anything beyond what the SDK offers, which you then need to wrap in C#.
6
u/ArmoredPancake Nov 07 '19
For those of you reading this clown thread:
Xamarin has 100% SDK compatibility on Android and iOS. That means that you NEVER need to write Java or iOS code. You can write it ALL in C# so unlike React Native and Flutter, when you get out of the guardrails of what's available, you can customize on each platform to your heart's content without having to maintain or have devs that write Swift/Kotlin etc.
Even better, let's also use Blazor instead of JS, then we get rid of web devs too, win-win. C# the universal language!
This is A HUGE savings for most teams that don't have the dev dollars to have iOS and Android specialists that write in those languages.
You have a far bigger problem if you're hiring C# devs for mobile work without knowledge of native SDKs.
And since in flutter you're almost guaranteed you're going to have to write OS specific code to cover all of the gaps, it's a big deal for most teams looking at Flutter.
What most teams? Most teams have dedicated mobile development crew that searches for a better code sharing between platforms.
If you're writing simple stuff, sure Flutter is fine because you never have to write Java or Swift code to make up for it's short comings, but most apps don't fall into that simplistic world so get ready to write swift and java/Kotlin.
Which is a good thing. In the end you're not depending on the leaky abstraction that breaks release after release.
And I think it's self-evident based on this thread that I'm not the beginner in the conversation and have vastly more experience than you at vastly more languages and environments that you do.
I'm literally an expert in all of the cross platform languages that I've listed and Swift, Java and Kotlin.
Haha, sure.
But hey, if you want to try and convince yourself that others are as limited as you and can't master multiple languages and environments, fill your boots.
Calls me limited
Wrote two huge paragraphs of how it's bad to resort to native platform code and that everything should be in a framework level
Hahaha.
I just won't hire you in my company because arrogant (and wrong) asses such as yourself are a good way to tank productivity.
Aw, that's a shame.
4
u/dakamojo Nov 07 '19
Ha. There's absolutely no reason in that. Flutter isn't the only tool Google promotes for building mobile apps.
-4
u/JohnGalt1718 Nov 07 '19
... right now. But again, if you know what fuscia is, then you know that flutter is to fuscia what Java/kotlin is to Android.
3
0
u/PinkFrojd Nov 08 '19
Why develop Kotlin and Flutter at the same time ? If Flutter is future of mobile development at google, why not just stick to Java for now on and develop Flutter at the same time ?
2
u/ueman Nov 09 '19
Kotlin is not developed by Google. Other than that Kotlin is not explicitly for mobile development. It is meant as a replacement for Java which is also used in all kinds of environments.
0
u/aytunch Nov 08 '19
I would be really impressed if they wrote Stadia in dart/Flutter without getting help from platform channels(native os code) of ffi. If they manage to have a low latency video app just using pure dart flutter code then they have my respect for sure. And if they do, I hope they use that code to improve the video player plugin in pub dev. It sucks
1
Nov 08 '19
[removed] — view removed comment
2
u/Areneboy Nov 20 '19
I wonder how you got that perception. Performance is once of the key benefits of Flutter. I've used it for multiple apps with complex animations and layouts, and it never fails to maintain 90fps on a OnePlus 7 Pro. This combined with excellent performance profiling tools makes performance a non-issue; this isn't Ionic or React Native, there's no JS bridge to slow you down, and the code is compiled to native ARM.
1
Nov 22 '19
[removed] — view removed comment
1
u/Areneboy Nov 22 '19
I can’t share any source code as it’s under my company’s ownership and not mine. What I’d recommend is the «Flutter Developer Quest» and «History of Everything» apps available on Android and iOS. These should give an indicator on release performance with complex animations.
1
Nov 23 '19
[removed] — view removed comment
1
u/Areneboy Nov 23 '19
They’re open source as well at 2Dimension’s GitHub profile . The gallery app performs just fine on my OnePlus 7 Pro, but it needs work if it stutters on an 835.
1
8
u/moldymoosegoose Nov 07 '19
Has flutter gotten better for video yet? It's sooooo limited last time I tried (about 6 months ago).