r/FlutterDev • u/kirbyfan64sos • Dec 04 '18
Article Flutter 1.0 Is Now Available: Stable Native Cross-Platform Development
https://www.xda-developers.com/flutter-1-0-is-now-available-stable-native-cross-platform-development/13
u/zintjr Dec 04 '18
very excited to see that they are embracing support for desktop and web platforms! My spirit did a "WOOP WOOP" when I saw that image of a Mac and PC come across the screen!
17
u/louis993546 Dec 04 '18
I really hope flutter can stop electron! Having 20 copies of chrome on every computer is just ridiculous!
2
u/JackAppDev Dec 05 '18
Both flutter and chrome are built on skia though. Will it make that much of a difference?
3
u/louis993546 Dec 05 '18
The rendering part probably has little to no difference between the 2, but the biggest potential gain may come from Dart: JavaScript is still an interpreter language, and there is a limit to how much the JIT compiler can optimize on the fly (which is probably why wasm was born). And if flutter desktop also behaves like for mobile, it sounds possible for it to run a lot faster, using less memory, and overall smaller app size
7
Dec 05 '18
JavaScript in v8 is incredibly fast, that's not the problem. Electron starts 4+ processes that are all memory hogs. Web browsers are expensive because they have to be, desktop apps do not.
Look at visual studio code that's written in electron, it's fast but it hardly uses less resources than regular Visual Studio, a full blown ide.
9
4
Dec 05 '18
What does that announcement mean for bigger issues which are not solved yet? (E.g. savedInstanceState)
I guess this is more work and wouldn't be solved within a small patch, as I would expect some API changes. So would this be something for Flutter 2, or is a community solution needed?
7
u/bartturner Dec 04 '18
Did not realize we were even close. Fantastic we have version 1.0.
1
u/ziggycrane Dec 04 '18
It's a symbolic version 1.0. Still 4k+ issues on github.
10
Dec 04 '18
? Issue count does not have anything to do with versions. See literally any popular lib, they all have thousands of issues and still can be stable (v > 1.0.0)
2
u/TinyZoro Dec 04 '18
If it wasn't for the event I don't think they would be pushing a 1.0 release. But I think its close enough not to quibble too much. In reality we are probably 6-12 months away from a true production ready release (not just a few gotchas but ecosystem) that an average development studio would embrace.
1
u/doireallyneedone11 Dec 05 '18
Will this mean we would see same day or similar timeframe apps and games releases on Android and iOS?
3
u/paulsia Dec 05 '18
React Native has 5k+ REAL issues, but they close issues really fast so so you don't see it :-) Also, Google flutter devs post issues on Github, Facebook devs don't even read Github issues let alone file an issue.
1
3
u/aboukirev Dec 04 '18
For me upgrade is failing as I am on PowerShell 6, which uses pwsh.exe, while flutter upgrade attempts to call PowerShell.exe. I'll have to reinstall from scratch.
3
5
u/zmasta94 Dec 04 '18
Any updates on the issues Jay Freeman (Cydia) highlighted?
5
Dec 04 '18
I brought up those issues in Gitter and was told that they're definitely working on those iOS text accessibility issues.
2
3
u/kdawgwilk Dec 04 '18
Its really a Flutter Android 1.0 release iOS still needs work
3
u/batmassagetotheface Dec 05 '18
Yeah? What specifically?
5
u/vonKlinkenhofen Dec 05 '18
In the webcast yesterday iOS finalization was specifically listed. So I think the Assumption that the Cupertino set is still incomplete is -according to Google- inaccurate.
2
u/batmassagetotheface Dec 05 '18
Oh so more around the Cupertino style ui elements?
Admittedly I haven't used that so far in any development2
u/vonKlinkenhofen Dec 05 '18
Me neither, I prefer the Material UI. But the Cupertino environment holds all the elements you'd get from xcode. So in theory each and every native iOS app could be fully duplicated with Flutter.
-9
u/sannysanoff Dec 04 '18
Sadly, it does not support 60 fps (or even 30fps) for standard UI elements.
Just look at the keynote, excited main designer shows the design, it's maybe 10 fps at most: https://youtu.be/NQ5HVyqg1Qc?t=6186 (link has time reference)
How comes that nobody cares??
5
u/kirbyfan64sos Dec 04 '18
Yeah, it's likely just because it's either in debug mode or is on an emulator. IME it's never dipped as low as 10fps.
10
u/lnkprk114 Dec 04 '18
That would be in debug mode, no?
Admittedly I didn't see the debug banner but if she was using hot reload and whatnot than it must be.
6
u/onthefence928 Dec 04 '18
everything looks smooth enough, if it's a live code demo its not running baremetal, its emulated so it's slower than production
3
u/GaryQian Dec 05 '18
All of the apps shown in the live sessions were in debug/unoptimized mode, where performance is much lower than in release. One of the primary goals of Flutter is reaching 60fps even with fairly complex designs.
1
u/doireallyneedone11 Dec 05 '18
Will this mean we would see same day or similar timeframe apps and games releases on Android and iOS?
1
u/GaryQian Dec 05 '18
Building your app in release mode is straightforward and can certainly be done for both iOS and Android in a single day. Whether or not they will be approved/processed/available on the Play/App store is more likely to be your bottleneck.
1
u/doireallyneedone11 Dec 06 '18
That's not I was referring to. Developers generally release iOS apps and games first and then on Android. Will this change that?
2
0
Dec 05 '18
[deleted]
7
u/MarcelGarus Dec 05 '18
The default
ListView.builderalready "recycles" stuff for you in the background as it only creates what's seen on the screen. Although recycling is probably not the right term as your Widgets are re-created every frame anyway.From the pov of Flutter's RenderObjects, Flutter recycles everything: Let's say, you swap out a button with a different one, then the same underlying RenderObject will be used, only some of its properties change.
Regarding the boxing system, I don't see anything wrong with it, especially since Flutter is designed with a bottom-up approach where each Widget defines its own rules. Could you elaborate further on what "layout containers" you're missing in the current system?
19
u/hundeva Dec 04 '18
The stuff that gave me a bit of a pause was the Google Maps demo, that was embedded into the moving phone. I mean, yeah, why wouldn't it be possible, but just seeing that working was something else.