r/FlutterDev • • Oct 01 '20

Article Announcing Flutter 1.22

https://medium.com/flutter/announcing-flutter-1-22-44f146009e5f
257 Upvotes

38 comments sorted by

38

u/MisterJimson Oct 01 '20

So much good stuff in here. Great release.

27

u/[deleted] Oct 01 '20

So fast. These are big updates that we've all been waiting for. Thanks Flutter team.

11

u/[deleted] Oct 01 '20

Finally maps and webview plugins are stable! Thanks God ๐Ÿ™

2

u/[deleted] Oct 02 '20

Does Maps work with flutter web?

2

u/[deleted] Oct 02 '20

Very unlikely.

10

u/D_apps Oct 01 '20

I really wanted to see some news about flutter web and desktop :(

15

u/Rudiksz Oct 02 '20

I started porting my Android app to Windows, ... and until now I didn't have to change a single line of code.

Of course, I had to write a whole plugin using ffi before, but now I have an offline first app that runs on both Android and Windows and syncs seamlessly. I pretty much switched to run my app as "windows app" and then once I'm done with a feature or bugfix I test it on Android.

I'm very excited the way windows support is turning out.

1

u/D_apps Oct 02 '20

Me too, that's amazing.

1

u/[deleted] Oct 02 '20

Can I see the repo? Sounds amazing.

4

u/Filipasek Oct 01 '20

Web is in beta and desktop is in alpha. Check them out instead of waiting for news in stable version.

1

u/[deleted] Oct 02 '20

What is the difference between web and desktop?

4

u/Filipasek Oct 02 '20

Target platform. Web browser vs Linux, Windows, MacOS

2

u/David_Owens Oct 02 '20

Flutter Web App platform creates the HTML, CSS, and JavaScript needed to have a Web App running in a browser window. Desktop creates a native binary running in a wrapper for each desktop platform.

1

u/duhhobo Oct 02 '20

Navigation 2.0 has huge implications for flutter web

1

u/D_apps Oct 02 '20

Why?

2

u/duhhobo Oct 02 '20

It makes it easier to manage routes with URL and adds more flexibility. It also makes it easier for mobile and web to share a codebase. If you don't need web support though it's probably easier to just stick with the 1.0 library.

10

u/Kardon403 Oct 01 '20

Any updates to android notification channel support?

14

u/joaquini Oct 01 '20

Hosted DevTools Inspector tab in IntelliJ.

Nice!!!

4

u/martyns11 Oct 01 '20

Great update! There is one thing I don't get about null safety with Flutter though.

It's stated that the nnbd experiment should not be used in production, but, doesn't the 1.22 version include some migrated code already? That would mean running null safety on production indirectly right? Am I missing something?

5

u/Rudiksz Oct 02 '20

If Flutter migrated to null-safety and released it on the stable channel, it's preobably quite safe. Flutter and Dart are pretty synonimous so I'm sure the null-safe code in Flutter is what Dart expects null-safe code to be like.

I had the feeling that with the migration process they were refering to apps and the package ecosystem and not Flutter itself. As in, don't migrate your own projects/packages that you use in production just yet [all at once], because who knows what weird code you might write for which the the null-safe Dart is not prepared and would break Dart/your app.

2

u/bees4thees Oct 02 '20

You donโ€™t actually use it unless you flip on the null safety experiment.

8

u/KalilPedro Oct 02 '20

You do. The framework uses null safety. The thing is, if the entrypoint is not nnbd, along with every piece of dart code, you will be running on the unsound nnbd mode. That is, the compiler will not assume that every non nullable value is not null and not perform the optimizations it could do, instead it will interpret the code as nullable with additional null asserts to ensure an non nullable function does not try to run with Null

6

u/HotLittlePotato Oct 01 '20 edited Oct 03 '20

Thank the Flutter Gods, webview plugins are finally production-ready!

--

Before I rip out my current webview plugin and switch, does anyone know if HttpOnly cookie retrieval is properly supported in the updated webview_flutter? Makes SSO support pretty difficult otherwise.

--

EDIT: So the answer is: No, it is not. Pretty shocked a "production ready" webview still doesn't support setting or getting cookies (outside of Javascript's document.cookie which is pretty useless nowadays). Luckily there are some PRs that appear to work.

2

u/KaiN_SC Oct 01 '20

such a great update!

2

u/[deleted] Oct 01 '20

This is huge, and the Flutter/Dart teams' commitment to ease of use is really unparalleled. Who else would make an entire migration tool UI like this?

1

u/Akandoji Oct 02 '20

As a noob in this space, what's going on here?

3

u/thistokenusername Oct 02 '20

Dart is adding a major language feature called Non-Nullable By Default (NNDB). It means that you must explicitly say so if you want a type to be nullable. Obviously, this requires some code migration, hence the tool.

2

u/13h0pu Oct 02 '20

What can I say but Thank you.

2

u/BilgolaBeach Oct 02 '20

The mapping product is missing a key element that is really required and that is the Map Marker cannot be modified, it is simply an unimplemented feature and they do not note that in the documentation either. Was hoping this would be resolved, so it may be stable but it is incomplete.

3

u/[deleted] Oct 02 '20

incomplete for you, but stable for everyone. Not everything has to be covered by the Flutter team, you can implement it yourself.

1

u/[deleted] Oct 02 '20

Does Google Maps Flutter work with Flutter Web?

https://pub.dev/packages/google_maps_flutter

https://flutter.dev/web

1

u/Resolve_Sudden Oct 20 '20

Wow, looks promising, they said in future Flutter is gonna be the best and only option for mvp https://litslink.com/blog/flutter-to-become-native-in-4-years

1

u/tommek13 Oct 01 '20

I'm flabbergasted with the amount of stuff they managed to put into single release

-6

u/jvi Oct 02 '20

flutter is just dead cause they chose a dead language like dart to build it on. mark my words, this is unsupported within 2 years.

2

u/duhhobo Oct 02 '20

This is hilarious

2

u/Kardon403 Oct 02 '20

In what ways is dart a dead language?