r/FlutterDev • • Jan 01 '23

Discussion Why Flutter apps feel slightly "off" compared to native ones

200 Upvotes

52 comments sorted by

55

u/FunSurround934 Jan 01 '23

Building a Piano App, i found that using a Listener widget instead of a Button or GestureDetector would produce faster touch responses.

9

u/GetBoolean Jan 02 '23

Probably because of how gestures work in flutter? https://youtu.be/Q85LBtBdi0U

2

u/mryoloo Jan 02 '23

Inkwell worked nice for me

29

u/anlumo Jan 01 '23

That ticket was brought to the attention of the devs last year here (as in, they responded here that they now know about it). I haven’t heard any updates, though.

2

u/autognome Jan 01 '23

Link?

7

u/yurabe Jan 01 '23

This is the link. I got it from my email because I commented to the issue. Whenever someone comments I get an update.

https://github.com/flutter/flutter/issues/52207

2

u/anlumo Jan 01 '23

It's been a few months, so I'm not able to find the dev response any more, sorry.

15

u/Maherr11 Jan 06 '23

Fact: flutter should’ve stayed only on iOS/Android, they should’ve mastered these platforms, added fully native apis support, fixed all issues, instead of working on other platforms and game dev support

70

u/virtualmnemonic Jan 01 '23

In my opinion, flutter devs need to focus solely on iOS, web, and Android performance for a while instead of new features and desktop support.

Jitter on iOS still occurs despite compiling shaders as well.

20

u/kiwigothic Jan 01 '23

I think desktop support is more important than web, seems to me that there may not be a solution to the long startup time (bundle size) and that will forever limit the use cases for flutter web?

7

u/virtualmnemonic Jan 01 '23

Flutter web is for web apps, not websites. The bundle size is a bit more acceptable given you're loading what otherwise would be a full-fledged mobile application. It wasn't designed to replace WordPress.

But yes, I think Android and iOS performance is by far more important.

5

u/kyguyartist Jan 02 '23

I love Flutter, but Flutter Web does not cut it for me. I would not recommend it to anyone doing anything public-facing for Web development; there are so many things wrong with it and it seems like the wrong implementation under the hood. The laggy performance is even weirder and more noticable than anything I've seen on Flutter iOS and Android builds. I would have kept that build target under wraps and experimented more before releasing that. For starters, they really need to switch to HTML and CSS rendering rather than using the Canvas to render everything. I think the lines between "web app" and "website" are too blurred to say that Flutter should be used for Web apps. There is too much to unpack there, but I think they should focus on Android, iOS, tvOS and Android TV.

1

u/qualiky Jan 02 '23

Yeah web applications being rendered in canvas is okay for me despite the massive initial payload. The only thing they could improve is create a barebone html/css render that could interop with html/css (the flutter widget tree/web dom feels similar anyways). The current html/css rendering is still terrible. I'm okay with limited number of widgets and components for now if they could get this barebone web rendering working properly.

1

u/ChristianKl Feb 17 '23

Flutter is open source. Having released the current web framework means that those who want to use it can use it and can contribute to the code base.

4

u/crudude Jan 02 '23

But I'm making an app with Windows :(

7

u/venir_dev Jan 01 '23

It should be native-only support. Like Taurus is doing. The web has its own history and problems. And a shit ton amount of solutions. Why even bother.

7

u/pudds Jan 02 '23

IMO they should forget web and focus on mobile and desktop.

Cross platform is what flutter does best, and web doesn't mesh well with any other platform.

7

u/Flashy_Editor6877 Jan 03 '23

latency is my biggest problem. the delay from when you touch to when you get audio/visual feeback

4

u/mryoloo Jan 02 '23

I feel this with the official PlayStation app. I wonder if it is developed in flutter

5

u/Less_Hedgehog Jan 05 '23

The PlayStation app uses React Native. But it's so slow to the point of being visibly non-native

1

u/mryoloo Jan 05 '23

So technically flutter and react native feel the same ?

4

u/Less_Hedgehog Jan 05 '23 edited Jan 05 '23

In my own experience RN apps tend to be faster than Flutter apps. But it really depends on what the developer is doing. Flutter and RN apps never feel the same, and from a dev standpoint are pretty different. There's nothing like a native app 🥲

By the way you can find PlayStation on the RN showcase: https://reactnative.dev/showcase

5

u/solitude_1999 Jan 01 '23

I also agree that app ( Wonderous ) kind look awesome and flutter_animate package they introduce also an awesome package but as soon as you scroll you can tell something is wrong. Worst thing about that you follow all the best performance practices flutter doc provide but then you come to know there is something wrong deep down in engine.

2

u/aytunch Jan 02 '23

Do you think this package helps with native feeling scrolling? it has some great advantages for some of Flutter's rendering and building drawbacks.

https://github.com/fzyzcjy/flutter_smooth

2

u/Less_Hedgehog Jan 05 '23

Flutter doesn't even have the ripple effect introduced in Android 9. Android 9 was released in 2018. Do a search for ripple on the issue tracker and you'll find heaps of unresolved issues: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+ripple

1

u/No_Assistant1783 Jan 02 '23

Is this OS-specific? Like is it better in iOS, or maybe worse in Windows, etc?

1

u/tomata_ Jan 02 '23

I happen to have developed a screen with three animating widgets and it breaks with a slightest change - new business requirement, some flutter update(s). Let's hope they resolve it - it will make all apps build with flutter better with just one rebuild.

1

u/ercantomac Jan 02 '23

This, and the lack of DCI-P3 color space support. https://ente.io/blog/tech/display-p3/

1

u/Flashy_Editor6877 Jan 03 '23

and the lack of full color gamut

-7

u/[deleted] Jan 02 '23

This post is odd. Flutter is going to have some overhead, that's got to exist when you're writing one set of code for multiple platforms.

However, this case isn't an issue of flutter's overhead, it's more an issue that you're approaching the problem in a sub optimal way. You must use native components for niche cases like this, flutter was never designed to be a 120 fps drawing engine. It was meant to be the UI around everything like this but not the engine itself.

The trade off of 1 frame lag is not an issue whatsoever for most apps, it's irrelevant. If it's such an issue, by all means hire 3 development teams instead and go get that 120 fps.

This post doesn't shed any light on "what's wrong with flutter", it just shows a lack of understanding.

2

u/airflow_matt Jan 02 '23

Your comment makes no sense. The frame lag in flutter is not necessary, it's just suboptimal scheduling implementation where the engine unnecessarily waits one frame after receiving touch event. It is perfectly fixable (though the fix is not entirely trivial).

8

u/[deleted] Jan 02 '23

[removed] — view removed comment

2

u/[deleted] Jan 02 '23

BTW, the comments in that thread mirror EXACTLY what I have to say. Please read them. Most feel OP was wrong.

1

u/Dontfeedthelocals Jan 02 '23

I'm new to this issue, do you know if it is less of a problem with more minimal apps? I might actually scale back some complexity if it will improve performance.

2

u/[deleted] Jan 02 '23

[removed] — view removed comment

1

u/Dontfeedthelocals Jan 02 '23

Thanks for the reply. Using the wonderous app mentioned in this post left me a bit concerned given the stuttery scrolling. I've yet to finish an app nor test one on mobile so just wondering if the stuttering is due to the amount of functions and graphics used in this app or if it's typical of even simple flutterflow apps?

1

u/[deleted] Jan 02 '23

[removed] — view removed comment

1

u/Dontfeedthelocals Jan 02 '23

That's so good to hear, thank you!

0

u/[deleted] Jan 02 '23

Yes, missing 1 frame is perfectly acceptable for everything else Flutter offers. Or, you can write that component natively, with the exact same effort you would have already, and there's no issue...

1

u/Heisenlife Jan 02 '23

Sure missing 1 frame can be acceptable for basic apps but if Flutter team can fix this somehow then it MASSIVELY opens up the potential for the framework.

-7

u/Accomplished_Low2231 Jan 02 '23

because you are biased. in reality you can't tell if an app is flutter or not.

17

u/[deleted] Jan 02 '23

[removed] — view removed comment

2

u/Heisenlife Jan 02 '23

with the scrolling you can easily tell if the app is made with Flutter or not

0

u/[deleted] Jan 01 '23

[deleted] — view deleted comment

13

u/bawaaal Jan 02 '23

Another one is that scroll bug. Two finger scroll results in twice the scroll speed.

2

u/AlarmingPerformer627 Jan 02 '23

wow, never realized this is a thing. Is there already a bug report on this?

1

u/Dangerous-Gap-6145 Feb 18 '23

This is well know among the Flutter team but since it does not have much deveoper demand to be removed, it is currently a quirk of Flutter scrolling that is a nice way to identify Flutter apps in the wild. If this behavior bothers you, please file an issue or upvote an existing issue regarding this!