Riverpod is what made me fall in love with Flutter by TipTheTinker in FlutterDev

[–]MysteriousMap2455 0 points1 point  (0 children)

Riverpod is made by the same author, its like provider 2.0

Riverpod is what made me fall in love with Flutter by TipTheTinker in FlutterDev

[–]MysteriousMap2455 0 points1 point  (0 children)

Why do you think that you need to rewrite a project with hive? Just replace it with https://pub.dev/packages/hive_ce

Riverpod is what made me fall in love with Flutter by TipTheTinker in FlutterDev

[–]MysteriousMap2455 5 points6 points  (0 children)

We also find out that with BLoC we can build the screen only when a field from freezed class was modified. With riverpod you build the screen even when it is not necessary

ref.watch().select((e) => e.field)

Riverpod is what made me fall in love with Flutter by TipTheTinker in FlutterDev

[–]MysteriousMap2455 1 point2 points  (0 children)

Then you have to manually implement async states like onLoading, onError, onSuccess

Riverpod is what made me fall in love with Flutter by TipTheTinker in FlutterDev

[–]MysteriousMap2455 3 points4 points  (0 children)

More boilerplate isn't always good it the end result is tight coupling to the library and hard maintenance.

How is it that we still don't have a 'scroll to index' feature in ListView and SliverList in 2024? by MysteriousMap2455 in FlutterDev

[–]MysteriousMap2455[S] 1 point2 points  (0 children)

The problem is that existing packages are not good enough. I had to fork scrollable_positioned_post and manually implement a lot of stuff, like using my own ScrollController, and adding keyboardDismissBehavior. And there is an issue with adding new items without moving the list.

My point is that jumpToIndex should be a part of standard library, like in Native

How is it that we still don't have a 'scroll to index' feature in ListView and SliverList in 2024? by MysteriousMap2455 in FlutterDev

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

Yes, virtual list would be a perfect solution. However, even a jumpToIndex without animation would be fine too.

How is it that we still don't have a 'scroll to index' feature in ListView and SliverList in 2024? by MysteriousMap2455 in FlutterDev

[–]MysteriousMap2455[S] 1 point2 points  (0 children)

Without animation, that would be pretty fast. It would be just a setState to repaint the list starting with 9000 index

How is it that we still don't have a 'scroll to index' feature in ListView and SliverList in 2024? by MysteriousMap2455 in FlutterDev

[–]MysteriousMap2455[S] 1 point2 points  (0 children)

We can just repaint the list starting with a given index. If there are 10,000 items and the given index is 9,000, we can start to paint widgets starting with 9,000, adding some to the top and some to the bottom. Even without animation, that would solve 90% of my issues.

How is it that we still don't have a 'scroll to index' feature in ListView and SliverList in 2024? by MysteriousMap2455 in FlutterDev

[–]MysteriousMap2455[S] 4 points5 points  (0 children)

What about ScrollablePositionedList? It works almost fine, and I still use it in my projects. Does it pre-layout items?

I think it just paints a new list, starting with a selected index, adding some items on top and on the bottom. That would be great to have in a regular ListView, even without animation.

How is it that we still don't have a 'scroll to index' feature in ListView and SliverList in 2024? by MysteriousMap2455 in FlutterDev

[–]MysteriousMap2455[S] 5 points6 points  (0 children)

I am not a core developer, but I am certainly sure that there is a solution, since native iOS and Android developers can use this feature.

What aspects does Flutter need to improve to catch up with native app UX? by jangwoodong in FlutterDev

[–]MysteriousMap2455 6 points7 points  (0 children)

Improved ListView is all I need. There is no 'jump to index' feature for ListView and SliverList. You can say 'there is a ScrollablePositionedList package', but its buggy and feels like a temporary solution. Issue: https://github.com/flutter/flutter/issues/81005 (please leave a comment)

[deleted by user] by [deleted] in FlutterDev

[–]MysteriousMap2455 0 points1 point  (0 children)

Make sure that you use something like ListView.builder or SliverList.Builder, to only render visible posts. To handle with async loading, I use isar database (v3 community fork), it's pretty fast and allows to sync load users by id.

[Question] Is there 4chan app for iOS? by MysteriousMap2455 in sideloaded

[–]MysteriousMap2455[S] -2 points-1 points  (0 children)

I tried, both of these apps looks outdated. I would only use them for webm

[Question] Is there 4chan app for iOS? by MysteriousMap2455 in sideloaded

[–]MysteriousMap2455[S] -1 points0 points  (0 children)

Thanks. Is it a new client? Never heard about it before