r/androiddev • Note 8 • Feb 23 '18

Introducing Flutter (Google Developers)

https://www.youtube.com/watch?v=fq4N0hgOWzU
248 Upvotes

89 comments sorted by

View all comments

33

u/Nexxado Feb 23 '18

I encountered Flutter about a week ago, the concept looks really promising in my opinion.

For those who wants to understand what's exactly new about Flutter and what's the difference between Flutter and frameworks like React-Native, I recommend reading this article

Though note that Flutter is still in Alpha and some features don't work yet, such as inline maps & Instance state not being saved when app is killed by OS.

26

u/Zhuinden Feb 23 '18

Instance state not being saved when app is killed by OS.

Lol that's just as bad as Xamarin.Forms then

12

u/FrozenCow Feb 23 '18

I still fail to see much value in flutter if they do their own rendering and avoid reusing OEM widgets. No wonder a maps widget gives them trouble. Basically it seems like they are reimplementing (not reusing) OEM widgets with all of their tiny details that makes an app easily feel a bit off (animations, shadows, colors, measurements).

I'd rather rely on the OEM widgets and be able to reuse those. Even moreso when a new theme is being thought up yet again by Google/Apple and you (or the flutter team) need to imitate all of their details again.

5

u/Darkglow666 Feb 23 '18

The benefits and downsides to this approach have been well documented in the many articles on Flutter tech out there. In the end, everything is a trade-off, including using OEM widgets. You just have to decide where your priorities are.

7

u/FrozenCow Feb 23 '18

It is clear to me that it is a trade-off and they it was a conscious choice for the flutter team to use custom widgets. However, many frameworks have done the same thing in the past and have had lackluster results (imo) on mobile.

Qt was one of them. Even though it allows for very performance mobile applications, it doesn't feel right. Whatever the time you put into making it look and feel right, it keeps being an uphill battle against the Android and iOS design teams.

The same it true for webframeworks like ionic. Yes, it feels somewhat similar to real apps, but most people are very familiar with their os and small variations will feel off. Also, like before, it's an uphill battle.

I think React-native has the right approach. It allows you to reuse components like toolbars, sidebars, snackbars, fabs and their strange submenus and whatever Google/iOS designers come up with tomorrow. The map component mentioned above is another very good example that you want to reuse.

Don't get me wrong, I think it's good to have yet another option. It's good to see the exploration in how to build a good UI framework. I personally just won't choose for this approach because I have my doubts regarding the long run.

3

u/la__bruja Feb 24 '18

Out of curiosity, have you tried any of the Flutter poster-child apps, like Flutter Gallery or Hamilton? I showed them to couple of people and they'd all say they look and feel exactly like a regular native apps.

I agree that the custom widgets are a trade off, but is it really that bad? In case there happens Material Design 2.0 or whatever, the worst that can happen here is that your app will look outdated in couple of years, in which time either Flutter as a whole will be dead (in which case you're boned anyway), or users/maintainers will implement it as well, in which case you're probably not worse than with a native app, where you'd have to wait months (at least) for support library implementation that's a chore to style properly

1

u/FrozenCow Feb 24 '18

Well, it isn't bad necessarily. When your app will look outdated I'd like to have the option to refresh the app by using new components. That will become awfully hard when relying on the Flutter team to reimplement all widgets.

As for the Flutter Gallery, yes, it looks quite similar. They have done a good job resembling the Android Material design. However, it still doesn't match what I expect. For instance, the bottom bar doesn't show the ripple animation when pressed (it just flashes a gray circle). In addition, animations in general seem to go much faster than they do in other apps. The margin/padding of the dialogs seems off. The floating action button again does not show a ripple effect. They do not have an example of a submenu for the floating action button (which is quite a hassle to implement on your own). Pull to refresh behaves incorrect when pulling and pushing it back.

All of these are minor issues, but they do add up.

Lastly it also doesn't work at all with TalkBack. TalkBack doesn't recognize any of the components and therefore you cannot use any part of the GUI.

3

u/la__bruja Feb 24 '18

I get what you're saying, but only talkback (which seems to be a regression) and pull to refresh bother me personally. Lack of ripple, off animations (which you can adjust I think) and paddings aren't really something I'd call a deal breaker for Flutter, especially during alpha. But then again, maybe I'm just excited to be able to try something where I don't have to fight the framework at every other step

1

u/Nexxado Feb 23 '18

That's a good point.

1

u/la__bruja Feb 24 '18

Even moreso when a new theme is being thought up yet again by Google/Apple and you (or the flutter team) need to imitate all of their details again.

As opposed to native Android development, where e.g. all of Material design was promptly and flawlessly implemented by the system/support libraries and reasy to use, right? /s

2

u/FrozenCow Feb 24 '18

Haha you're so right on that one. Hopefully Google will allocate some developers toward the ideas of their designers next time :(.

It would be quite hilarious when new components will be created for Flutter before they are implemented in Android itself.

6

u/johnxreturn Feb 23 '18

I’ve been hearing about flutter for close to a year now. Meant to look it up and whatnot. Thank God I didn’t, seems like they’re still missing fundamentals and it’s in alpha stage for like ever now.

4

u/ortonas Feb 23 '18

Yes, but you can already make a product that is more cost and time efficient than 2 seperate projects for iOS and Android.

4

u/johnxreturn Feb 23 '18

And the same could be argued for Xamarin.Forms and react native.

From my understanding flutter has better speed and compatibility, what makes me not wanna use it is the smaller community and still being in alpha stage. What next, 3 years on beta ?

1

u/la__bruja Feb 24 '18

Gmail was on beta for years ;) But yeah, there's still lots of rough edges in Flutter