Questions tagged [scrollcontroller]

55 questions
0
votes
2 answers

Failed assertion: line 108 pos 12: '_positions.length == 1': ScrollController attached to multiple scroll views

I am trying the code which I have attached below. But there I am facing the issue like Failed assertion: line 108 pos 12: '_positions.length == 1': ScrollController attached to multiple scroll views. CustomScrollView( controller: scrollController,…
Vasanthan Raj
  • 126
  • 1
  • 9
0
votes
0 answers

Does scrollController listener slow down flutter Scrolling effect?

I am using CustomScrollView and A Listener to listen to the scrolling effect. And from this effect, I am changing the offset of my AppBar background. But I figure out a problem if I then use it on a screen that has huge data on it on HomeScreen…
Md. Al-Amin
  • 690
  • 3
  • 13
0
votes
0 answers

Flutter: how can I attach an INTERACTIVE Scrollbar to ScrollablePositionedList?

I want to add a Scrollbar to my ScrollablePositionedList (it's like a ListView, that let's you scroll do a specific child index on demand, from this package). The Scrollbar displays correctly, and also updates it's position when I scroll up/down.…
0
votes
1 answer

How to trigger lazy loading function before user reaches scrollController.position.maxScrollExtent?

The result I want to achieve, is to trigger a lazy loading function before user reaches scrollController.position.maxScrollExtent, so in that way I will "minimize" the waiting time in the eyes of user. In my case, I want the lazy loading function to…
arg0nath
  • 111
  • 2
  • 9
0
votes
0 answers

Flutter Prevent a ScrollController from scrolling for a given number of pixels

Flutter's DraggableScrollableSheet Widget allows a sheet to be dragged into position and then continue scrolling the content without the user needing to start a new gesture (lift their finger from the screen). This Widget however relies on a single…
Walrus
  • 19,801
  • 35
  • 121
  • 199
0
votes
1 answer

ScrollController doesn't scroll ListView to bottom + AnimatedContainer doesn't work

I have a list of report items. I initialised a scrollController here: class ReportList extends StatelessWidget { ReportList({Key? key}) : super(key: key); final ScrollController scrollController = ScrollController(); scrollDown() { …
0
votes
1 answer

Flutter : scrollController.isAttached is always false

How can I scroll to a special widget in a ListView? For example, I want to automatically scroll to some container in ListView if I press a certain button on a previous screen. I will pass to the next screen an Id (from id I will know the index) and…
0
votes
1 answer

how to access to ScrollControll of a class from another class in flutter?

Hello i`m new in flutter. I made a special listView for myself and made a controller for it. In the main page, I have called my own list view and I have a button that I want to execute the following method by pressing it from the Main class and my…
0
votes
1 answer

The argument type 'RenderObject?' can't be assigned to the parameter type 'RenderObject' because 'RenderObject?' is nullable and 'RenderObject' isn't

I am creating a web with Flutter web and I would like to implement a button that automatically scrolls the view down to a certain widget. For this I am using a scroll controller and a global key ScrollController _scrollController =…
0
votes
1 answer

How to Scroll multiple scroll of same Controller at once with sync to another one horizontal scroll?

so i have created a custom calender on top the dates will be in a horizontal scroll inside a list view builder and below some icons as per the number of the days in a month in anthor list view builder now the list view builder with icons is inside…
0
votes
1 answer

how can i take a picture position like Instagram on flutter?

post is not positioned under AppBar when I clicked on the picture except first. I want to make it like Instagram's function. How can I fix it?
dragonJin
  • 11
  • 2
0
votes
1 answer

Flutter - ScrollController not attached to any scroll views

ScrollController not attached to any scroll views. 'package:flutter/src/widgets/scroll_controller.dart': package:flutter/…/widgets/scroll_controller.dart:1 Failed assertion: line ** pos **: '_positions.isNotEmpty' This won't be an exact solution…
boraygen
  • 31
  • 1
  • 3
0
votes
1 answer

Connect scrollcontroller to multiple screens using getx - flutter

I have four screens on my app, first one displays a list of messages using a listview, second one has a button with an input that sends messages, third screen connects the first and second screen together and the fourth screen is my getx controller…
Brightcode
  • 660
  • 9
  • 27
0
votes
2 answers

ScrollController's using Flutter's new version

I having problem with Flutter's ScrollController. I want to be notified (at the debug console in the i.e) when I scroll ListView view and reach at the end of the list. I think What I learned is not applicable with flutter's new version. Do you have…
0
votes
1 answer

Flutter: Save and restore listview last scroll position not working

I need to restore the last scroll position in listview on app restart. I'm using listview.builder & scroll controller to save and restore offset but the listview doesn't scroll to previous position and starts from the top. I've even tried saving…