Flutter Tutorial - Scroll To Index/Item In ListView | Scrollable Positioned List

Flutter Tutorial - Scroll To Index/Item In ListView | Scrollable Positioned List

HeyFlutter․com

2 года назад

48,861 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Minhaj Raza
Minhaj Raza - 17.09.2023 12:10

thanks I used it for on page navigation in flutter and it works fine.

Ответить
Aradhya Saxena
Aradhya Saxena - 18.08.2023 07:17

Column is not recommended for Large lists.. I am not sure about scrollable positioned list

Ответить
Pravin Prince
Pravin Prince - 12.07.2023 10:33

Thank you for the wonderful video sir it is very helpful for me and my team, Thanks again sir

Ответить
Booom IT
Booom IT - 07.07.2023 10:10

after wasting 3 hour finally i found it!! YOU ARE GOD MEN!

Ответить
playwith rmdhn
playwith rmdhn - 06.07.2023 16:33

how to do it in SingleChildScrollView?

Ответить
Study Storage 2
Study Storage 2 - 20.06.2023 14:49

Really Helped Bro

Ответить
Князь Тишины
Князь Тишины - 15.06.2023 10:45

So you suggest to add a GlobalKey for a list item. But what about If list view contains 500 items. 500 GlobalKeys, don't you think it is too expensive?

Ответить
The Lofi Guy
The Lofi Guy - 15.04.2023 17:02

access to source code is not working

Ответить
tristan sp
tristan sp - 04.04.2023 23:43

How would you scroll automatically if data has been changed inside let's say inside an AppStateManager? I added a listener which would scroll to a specific index after a change in data, but when it scrolls to the index it would bounce back up/down either to the beginning or end (outside the listview). Hard to explain without showing haha

Ответить
TYNEPUNK
TYNEPUNK - 30.03.2023 01:52

thanks very much!.. i used an array of keys like this keyForSearchingList = List<GlobalKey>.generate(50, (index) => GlobalKey(debugLabel: 'key_$index'),growable: true);

Ответить
Manan Koyawala
Manan Koyawala - 05.03.2023 07:32

Thanks Bro it works for me i suggest you all if you try to make textfeild validation auto scroll so you have to place validation key above form widget if you place key above singlechildscrollview it will not worked
like this :-
SingleChildScrollView(
scrollDirection: Axis.vertical,
child: Container(
key: scroll,
child: Form(
key: widget.formkey,
child: Column(
children: [
const SizedBox(height: 10),
TextFFeild(

Ответить
B_Rabbit
B_Rabbit - 25.02.2023 15:12

thanks for this, but i need help. I have a book app where from reading page i have a bookmark button to save the current index/position of the listview. and from the main page if i click the bookmark button where the index of the saved position from reading page was set it will open the reading page and set the position to the index that was saved as bookmark. how to achieve that?

Ответить
Harwinder Singh
Harwinder Singh - 13.02.2023 08:42

but it does not have scroll controller to add the listener to detect the user direction .

Ответить
kishore s
kishore s - 25.01.2023 11:21

can i achieve scroll to index without scrollable positioned package

Ответить
Janam Maharjan
Janam Maharjan - 24.12.2022 11:51

Thank you very much as always very grateful

Ответить
Dev Sang
Dev Sang - 28.10.2022 08:21

Can use this package is available with the grid view?

Ответить
AlphaPro
AlphaPro - 04.10.2022 12:46

Is there anyway that detect if ListView item is visilne on screen by using LisVIew,builder ?

Ответить
faisal mushtaq
faisal mushtaq - 08.09.2022 12:04

thanks! Had to use this today in my project

Ответить
Aneesh Gupta
Aneesh Gupta - 29.08.2022 22:06

Hello sir..Thanks a lot for the content!.. I have used the Scrollable Positioned List and item listener as taught by you, but the issue is that the response in item listener is taking a bit long. I am using this response in item listener to update my bottom navigation view (which consist of 5 items). But the bottom view updates after 1 second (approx).. Can you please suggest me something on this..?

Ответить
ReactNative Developer
ReactNative Developer - 16.08.2022 12:15

you always make good videos

Ответить
ashish rana
ashish rana - 24.07.2022 17:26

thank you very much. By the way do you have any example of auto scroll function which scrolls as per the speed defined by the user ??? I want page to be scrolled automatically and define speed like 0 1 2 3 …… thanks again

Ответить
Mohammed Hamdan
Mohammed Hamdan - 25.06.2022 18:37

but could we detect if we reach the top or button using ScrollablePositionedList .. i cannot see any position in listener like normal ScrollController.position.pixels which listview.builder use it

Ответить
معني الأمان
معني الأمان - 27.05.2022 12:21

How can we get in touch with you ?

Ответить
sridhar
sridhar - 24.04.2022 18:40

Can we add a sticky header to this having multiple sections?

Ответить
sridhar
sridhar - 22.04.2022 15:25

Hi Joh,
How to highlight the widget for a specific amount of time after scrolling?

Ответить
Giovanni Blanco
Giovanni Blanco - 05.04.2022 17:48

Thanks

Ответить
Joseph Kamande
Joseph Kamande - 13.03.2022 06:42

How can I scroll starting from where new messages start in chat app

Ответить
Paula Pastragus
Paula Pastragus - 24.02.2022 14:03

Awesome! You're the best! Thanks !!!

Ответить
Arvin Gabriel Trinidad
Arvin Gabriel Trinidad - 09.02.2022 18:07

Hi, can you do it in nested listview?

Ответить
H3w4
H3w4 - 18.01.2022 20:18

very helpful video

Ответить
Erika Pueblo
Erika Pueblo - 14.12.2021 10:12

This has been really helpful! Thank you!

I tried it but had some problems when I used the Scrollable Positioned List inside a StreamBuilder. How can I access the Scrollable Positioned List in this case?

Ответить
Aashis Maharjan
Aashis Maharjan - 13.11.2021 17:00

Thank you very much for this video. After searching for days and days trying to add auto scroll to my project using anime to, jump to but in the end your code help to implement that with only two line of codes.

Ответить
will
will - 22.09.2021 18:38

i do the same thing but my widget doesn't get highlighted in scrollablepositionned list, is it normal?

Ответить
denzel gui
denzel gui - 15.09.2021 20:15

very nice

Ответить
LOLChatMania
LOLChatMania - 06.09.2021 22:03

thanks for the example

Ответить
satyam dubey
satyam dubey - 02.09.2021 06:19

You are the most passionate guy. Thanks 😊

Ответить
اسرو كورة
اسرو كورة - 17.08.2021 23:02

thank you

Ответить
Hashan Kannangara
Hashan Kannangara - 06.08.2021 04:44

❤️❤️😍😍

Ответить
Med Sed
Med Sed - 06.08.2021 00:52

Super bro super !!

Ответить
Most Comunity
Most Comunity - 05.08.2021 20:24

All your videos are awesome! an off-topic question,

How could I put 2 conditions on the same line?

ex:
if (....) {}
else if (....) {}

but in one line of code. (with "?" and ":")

Ответить
Ishan Weerakoon
Ishan Weerakoon - 05.08.2021 15:20

how to set item with n index for middle of the screen don't use button .I want to set today as 0 index and yesterday as -1 index tomorrow as 1 index . Then want to scroll up and down sides. 5 by five .please help me

Ответить
Poom C
Poom C - 05.08.2021 11:37

Will you do an alphabetical listview for flutter next? This really like the content on this channel!

Ответить
e.NONO
e.NONO - 05.08.2021 10:43

You are magician. Thank u 😍

Ответить
Anugrah Korambeth
Anugrah Korambeth - 05.08.2021 08:32

This is exactly what I was looking for! Thankyou for this awesome tutorial!❤️

Ответить
Kamal Saxena
Kamal Saxena - 05.08.2021 05:46

Sir, please flutter navigator 2.0

Ответить
Lovekesh Singh Khalsa
Lovekesh Singh Khalsa - 05.08.2021 04:58

Hi Milke, I ask you last time one thing is that one account for one device in app like WhatsApp. Prevent to open same account in multiple devices at the same time.

Ответить
Andres abalos torres
Andres abalos torres - 05.08.2021 03:08

how can get all docs from a firebase collection?

Ответить