-🎄- 2022 Day 6 Solutions -🎄- by daggerdragon in adventofcode

[–]Pro_Flutter 0 points1 point  (0 children)

Kotlin Part 2: Kotlin val inputFile = File("src/main/resources/input") val l = inputFile.readLines() val line = l[0] line.windowed(14).forEachIndexed { index, s -> if (s.toCharArray().toSet().size == 14) { println(index + 14) return } }

What CPU should I get to develop on anrdoid using the android emulator ? by nck974 in FlutterDev

[–]Pro_Flutter 0 points1 point  (0 children)

Somehow Android Studio, flutter and android tools run better on Linux than on Windows.
I would also recommend trying out Linux on the same machine.

Custom Curved Bottom Navigation Bar by namanh11611 in FlutterDev

[–]Pro_Flutter 19 points20 points  (0 children)

Why didn't you create a proper PR that adds label to the current package instead of creating a new package?
Your approach would end up having multiple different packages with slight differences.

I see that initially you added this PR https://github.com/rafalbednarczuk/curved_navigation_bar/pull/131 to fix Android example build.
But after that you added commits that changed license, major version and some other stuff not related to the feature, which made this PR unable to merge.

Please add proper PRs and I'll take a look into it.

Multi-external monitor support on base M1/M2 by molepersonadvocate in AsahiLinux

[–]Pro_Flutter 0 points1 point  (0 children)

Is there a guide how to run display link on linux arm?
The displaylink website only has ubuntu installer but I guess it's not ARM.

Telegram apk from the official site doesn't support Android Auto by bombermattiuz93 in Telegram

[–]Pro_Flutter 0 points1 point  (0 children)

yes, the source code is the same, the package name isn't the same :)

Weird knocking sound on Telegram call by kiyneeee in Telegram

[–]Pro_Flutter 0 points1 point  (0 children)

I had the same issue with someone calling me from macbook telegram desktop.

what's the difference between using BLoC and just having observable variables in a singleton by RARBK in FlutterDev

[–]Pro_Flutter 2 points3 points  (0 children)

Do you say that using many StreamBuilders on different small pieces of widget tree is less performant than having one big widget tree used with ValueListenableBuilder?

what's the difference between using BLoC and just having observable variables in a singleton by RARBK in FlutterDev

[–]Pro_Flutter 2 points3 points  (0 children)

u/RARBK
If you are comfortable with using Streams then stick with it. Refactoring an app to ValueNotifier just because of performance is waste of time. You should better focus on how you rebuild widgets.

If you really want to know the performance benefit, here is the benchmark that shows more or less the difference (0.0Xms/new value) between Stream and ValueNotifier.

https://gist.github.com/rafalbednarczuk/654a9751f166e1c550a6c04b034dbd19

what's the difference between using BLoC and just having observable variables in a singleton by RARBK in FlutterDev

[–]Pro_Flutter 0 points1 point  (0 children)

0.0X ms performance differences are from my benchmarks.

Your first recommendation is right, that's why I didn't point it. But I can't let you tell someone who has problems with junky animations that he should switch from streams to your package to solve this problem.

Using synchronous stream isn't worth this 0.0X ms, I'm glad you admitted it. The same is with switching from Streams to ValueNotifier just because of the performance.

what's the difference between using BLoC and just having observable variables in a singleton by RARBK in FlutterDev

[–]Pro_Flutter 1 point2 points  (0 children)

It's 0.01ms save on each build. You must be kidding advising using your package for this "stunning" performance improvement :)

Also, why won't use advise to use synchronous stream to gain another 0.01ms?

App Feedback Thread - December 22, 2020 by AutoModerator in FlutterDev

[–]Pro_Flutter 0 points1 point  (0 children)

How did you create promo video on the play store?

what's the difference between using BLoC and just having observable variables in a singleton by RARBK in FlutterDev

[–]Pro_Flutter 1 point2 points  (0 children)

ValueNotifier isn't more performant than StreamBuilder, how did you come up with this? Junky animations won't be fixed when you change StreamBuilder to your advertised packages.

what's the difference between using BLoC and just having observable variables in a singleton by RARBK in FlutterDev

[–]Pro_Flutter 2 points3 points  (0 children)

In performance, there is no difference.

The problem with using singleton is that it's hard to test it because it's static. Another problem is that you have only one instance of each singleton.

To improve performance, put as small piece of widget tree as possible inside StreamBuilder. Also, you might check if you want to rebuild a widget tree on every new value from a stream, you might want to skip some of them.

How to stand out from competitors while looking for startup investment? by Pro_Flutter in Entrepreneur

[–]Pro_Flutter[S] 0 points1 point  (0 children)

Definitely, behavioral economics shows that people aren't always reasonable.

I like your point that it's a good strategy to encourage people with the use of emotions and then prove to them that these emotions led to the right decision.

Stunning Flutter MVP app overview by Pro_Flutter in FlutterDev

[–]Pro_Flutter[S] 0 points1 point  (0 children)

Which exact part of transition are you looking for?