r/FlutterDev • • May 06 '19

Community Flutter @ Google I/O 2019

Google I/O is happening May 7-9! A livestream will be available from the Google Developers YouTube channel. Here are all the events that are related to Flutter:

Streamed sessions (time in PDT):

Tuesday, May 7

Wednesday, May 8

Thursday, May 9

Codelabs

There are also some new & updated codelabs available.

Live chat on Discord

Join us on our Discord chat server to discuss the event in real time. We’ll have a dedicated channel for Google I/O.

108 Upvotes

42 comments sorted by

15

u/ariedov May 06 '19

Which talk will be about Hummingbird? ;)

18

u/[deleted] May 06 '19

The talk "Beyond Mobile: Building Flutter Apps for iOS, Android, Chrome OS, and Web" specifically mentions building Flutter for the Web so I imagine they'll talk about it there!

11

u/munificent May 06 '19

4

u/[deleted] May 06 '19

I'll definitely watch it, good luck!

3

u/mtwichel May 06 '19

Gosh I sure hope so!

16

u/nirataro May 06 '19

Pragmatic State Management in Flutter

Is that a new state management scheme? (J/k)

7

u/syldiivh May 06 '19

"You'll come out understanding the main approaches of state management in declarative framework" Approache(s) :o. Would be nice if they did a guide like this: https://developer.android.com/jetpack/docs/guide allthough i dunno if it would make me switch away from redux.

11

u/outtascope May 06 '19

Even just adding some concrete examples in the cookbook section would be nice. As someone who’s attempting to move to Flutter from React Native, I’m having a hard time convincing myself to make the switch mostly because it’s hard to find something definitive when it comes to state management.

Even if you settle with BLoC, every tutorial you’ll see out in the wild does it differently. Even if they’re small differences, it’s significant enough to cause confusion for someone who’s still trying to figure out how everything works and fits together.

3

u/[deleted] May 06 '19

I'm in the same boat. I'm new from RN and on board with everything Flutter except state. I'm trying to stick to Bloc but I'm confused as to which implementation is best since I see so many variations. I might just use Redux since I'm so familiar with it already.

1

u/syldiivh May 07 '19

I went with redux for that reason. Havnt had any issues with it.

1

u/kill-soul May 08 '19

It’s because BLoC is a design pattern, not a framework.

You can implement BLoC today without any dependencies.

1

u/puglife420blazeit May 08 '19

Sort of how flux is a pattern and redux ENFORCES that pattern.

MobX for Flutter sort of enforces BLoC pattern. Key words being ‘sort of’

0

u/[deleted] May 08 '19

Yeah most of the guides are different and mostly use simple examples. The bloc package has the best documentation with good examples. https://felangel.github.io/bloc/#/

2

u/nirataro May 06 '19

They could have come up with something similar in the time it took to prepare for this session

4

u/syldiivh May 06 '19

Well I think its a choice to not be opinionated, so as to not limit community development in the area i suppose. If you come from react-native with redux you can pretty much do the same in my experience.

3

u/nirataro May 06 '19

They are never really clear in articulating their vision and approach regarding application architecture. I think it's a pity. Flutter is still a very young platform. It will help a lot of developers joining the platform in making a good default choice.

Picking a good default doesn't mean opinionated. It means that they will put effort into writing a good guidance and approach that will work for majority of cases. Unfortunately right now there isn't a lot of literature and resources from any of the approaches.

1

u/lxndrdagreat May 06 '19

This site/repo has helped me as I've been learning about different ways of handling state: http://fluttersamples.com/

8

u/dryadofelysium May 07 '19

Flutter for web (preview) is coming...

Watch closely:

https://flutter.dev/web

https://github.com/flutter/flutter_web

4

u/[deleted] May 06 '19

Genuinely excited to see where the Flutter dev is going in the future. Been using the framework for months and although it is not perfect, it is quite impressive for what it does and I'm very happy to be using it.

Anyone have any idea if they will have something like a fireside chat for Flutter?

2

u/nemoryoliver May 06 '19

Can't wait for everything!

2

u/GroovinChip May 06 '19

Nice nice nice

1

u/[deleted] May 07 '19

Nuu Fuchsia is not there.

1

u/extngg May 07 '19

Has anyone tried to sign in to customize? I am not getting any prompts. Even logged in gmail and then opened but it’s not allowing to sign in.

2

u/AshTheGoblin May 07 '19

Customize?

1

u/extngg May 08 '19

There was option to save and view only flutter event

https://imgur.com/gallery/NPBwtUA

1

u/AbjectBee May 09 '19

Hey I noticed they announced embedded does that mean there is a way to build apps for nest hub?

1

u/dj_alpha2 May 09 '19

looking forward to the state management talk.

10

u/[deleted] May 06 '19

[removed] — view removed comment

5

u/[deleted] May 06 '19

This. I get why they have an opinionated take on this, but the different solutions essentially make it hard to decide which is ideal. More so, the docs provide different ways to solve this issue, further confusing things a bit.

10

u/Lukeaf May 06 '19

Until the "canonical" way is not the one you want. There is `setState` now and it's entirely usable for state management but people complain about it not being what they want. I made the Hamilton app using the vanilla state management mechanism and I can vouch that it works. The code isn't a horrible, unmaintainable nightmare.

Choice is a good thing. Just pick one thing and don't worry about the rest. I use a combination of `scoped_model` and Flutter vanilla state for my projects. If I need more I'll add it but, for the most, I haven't needed to bother.

Flutter is pretty flexible so swapping out those things isn't a huge deal in my experience. If you want to go all in on bloc, rxdart, or some redux frankenstein do that also :)

2

u/[deleted] May 06 '19

Do you just pass setState down to child widgets?

1

u/outtascope May 07 '19

Choice is a good thing, yes, but so is having one endorsed way of doing things.

I think the Flutter team’s stance on having “no opinion” hurts the community more so than benefiting it because there’s just too many options to choose from.

From what I’ve seen, people are interested in Flutter because of the productivity boost it provides to making mobile applications. As soon as people get to the problem of how to manage state, they stumble because of paradox of choice.

It takes too much time to try and see which approach works best for them. It’s like taking two steps forward with Flutter being a great tool and one step back because the Flutter team looks like they don’t want to step on anyone’s toes by having an opinion on how to do state management.

They should just pick one approach, support it to make it work for a wide range of use-cases, and have it appealing enough to compete with other state management methods.

For React, this started out as the community made redux as a better alternative to setState(). Eventually, the new Context API was introduced. It was appealing enough for people to use because most people would use redux just for state management, not its deeper features like middleware and other libraries that build on top of redux.

2

u/nirataro May 08 '19

To illustrate, this is what we have now:

  • InheritedWidget

  • Scoped Model

  • ProviderScope

  • Redux

  • BLOC

  • RxVMS

  • MVC

  • rebloc

  • Dartea

  • MobX

  • Statelessly/Reactivity

  • var_widget

1

u/[deleted] May 08 '19

I had no idea that we had this much! Sure certain direction by Flutter team in this regard would be really helpful.

2

u/kill-soul May 08 '19

Most of these are third party packages

1

u/nirataro May 09 '19

I copy and paste this list every time a discussion about flutter state management show up.

3

u/[deleted] May 06 '19

[removed] — view removed comment

2

u/Lukeaf May 07 '19

I think they do. It's setState. That's (partly) my point. Everyone expects the canonical way to be different.

setState is totally workable. It's pretty simple to understand for beginners too. It's just not the one people want them to endorse.

I would guess (looking at the comments here) that if I said "let's pick Bloc" people would disagree. Same for Redux. It's a no win situation.

I've used Jetpack a bunch too and I personally still use (mostly) external options for Android. At the end of a day, a library/dep is a library/dep regardless of who makes it. Google doesn't always make the best ones 😀

1

u/msowah May 08 '19

I also use setState Lukeaf and its very workable... The cluster was too much so I went for vanilla state and its been real great so far.... setState works

-1

u/kill-soul May 08 '19

Given that Filip who maintains the BLoC package and works for Google is giving this talk, I think this will be more about BLoC.