Questions tagged [customscrollview]

85 questions
3
votes
0 answers

Programmatically scroll to an item of CustomScrollView on Flutter

I’m trying to create a custom widget in flutter composed of two scrollable items next to each other. The one on the right contains the main data separated into different sections (same List, i used a sticky header for the section header containing…
3
votes
2 answers

How to pin a container or any other widget below appbar in scroll view in flutter

I want a widget to be place below the app while scrolling the screen . The screen contains a floating app bar with flexible space ( sliverappbar) and below it one conatiner which have any container or tab view . The video in the link is the example…
3
votes
1 answer

Flutter - In a CustomScrollView how to prevent a scrolled Widget from being draw behind a pined Widget

Hi I am an Android developer and I started to port my app to Flutter. In Android when you have a CoordinatorLayout with an Expanded AppBar and a Scrollable content when the content is scrolled is not visible behind the Appbar. This gif is the…
2
votes
1 answer

Flutter CustomScrollView how to keep the viewport when adding item at the start of the list?

Problems: For example, there is a list of 100 messages. The current viewport of CustomCrollView is showing message 50 -> 60. When adding a new item to the start of the list, the viewport jumps to message 49 (old) -> 59 (old) (because the scroll…
dante
  • 984
  • 3
  • 10
  • 24
2
votes
4 answers

How to implement staggered grid view with SLIVERS in Flutter?

I want to implement a Staggered GridView, because my SliverGrid delegate requires an aspect ratio, and I want the grid items to be dynamically sized which is only possible with staggered gridview as far as I know. My question is how can I implement…
2
votes
1 answer

Flutter - RefreshIndicator on a child of CustomScrollView

So, I have a CustomScrollView with a SliverAppBar and a SliverList. The SliverList has multiple non-sliver children widgets. CustomScrollView( slivers: [ SliverAppBar(title: Text('some title')), SliverList( delegate:…
IncorrectMouse
  • 179
  • 1
  • 9
2
votes
1 answer

Wrapping a CustomScrollView and a Sliverlist with a Streambuilder throws exception

I am trying to listen for real-time documents from Firebase firestore using Streambuilder while displaying the retrieved data in a CustomScrollView and a SliverListbut when I do so the list breaks and the screen remains blank. I tried a…
Thorvald
  • 3,424
  • 6
  • 40
  • 66
2
votes
2 answers

How to have a ListView.builder (big list) in CustomScrollView in Flutter?

I'm trying to have a ListView builder with approximatively 500 items in a SliverList inside a CustomScrollView. Scaffold( appBar: AppBar( title: Text( 'Test', style: TextStyle(fontFamily: 'Diogenes', fontSize: 30), …
Valouf
  • 55
  • 1
  • 6
2
votes
1 answer

how to get a full size height of customscrollview widget in flutter?

I want to get the whole height of CustomScrollView widget. So I made a below code but it's not working. @override void initState(){ super.initState(); WidgetsBinding.instance.addPostFrameCallback((_) =>…
minki
  • 21
  • 1
  • 2
2
votes
0 answers

how to prevent list hiding under tabbar in SliverPersistentHeader in flutter?

I'm making tiktok clone flutter app now i'm on profile screen I've making it like this as you can see , when I scroll up , gif list hide under SliverPersistentHeader so pictures are not full size this is I wanna fix it I wanna prevent hiding …
SILENMUS
  • 709
  • 1
  • 10
  • 25
2
votes
1 answer

Mouse scroll not work on SliverAppbar() or SliverAppbar() floating not working Flutter Web

When i use SliverAppBar() in a CustomScrollView() then the SliverAppBar() floating:true is not working by the mouse scroll CustomScrollView( slivers: [ SliverAppBar( floating:true, expandedHeight: 150.0, flexibleSpace: const…
Al Mamun
  • 81
  • 4
2
votes
0 answers

Why is the SliverAppBar of the CustomScrollView displayed below the elements of the SliverList When shrinkWrap is true?

Normally, a floating SliverAppBar will be displayed on the upper layer of the SliverList as we slide the SliverList down.Like this : But, when change the value of shrinkWrap to true, the SliverAppBar is displayed below the elements of the…
luoqiao
  • 21
  • 1
1
vote
1 answer

flutter CustomScrollView It scrolls even if the height isn't full enough

I am trying to use CustomScrollView to create a view whose height scrolls according to the content inside. But with CustomScrollView, it scrolls even if its height is not full enough. Is there any way to solve this? here is my…
장주명
  • 43
  • 6
1
vote
0 answers

SliverFillRemaining with a SizeTransition occupies more space than the viewport

I have a problem with a SizeTransition that is within a SliverFillRemaining. The issue is that the SliverFillRemaining does not adjust its size proportionally to the height of the SizeTransition. Even when the sizeFactor of the SizeTransition is 0,…
Petri
  • 1,020
  • 3
  • 14
  • 24
1
vote
1 answer

Pin widget for some seconds when widget comes into viewport in SliverStreamGrid while scrolling

I have CustomScrollView with a SliverGrid with different widget types inside. I have a widget that appears after the stream content ends and other content will load. When this widget appears, I want to shortly pin it on the screen and disable the…