Questions tagged [customscrollview]

85 questions
1
vote
1 answer

How to make one part of body scrollable and other as fixed when using SliverAppBar

I'm trying to make a UI in flutter wherein I'm using SliverAppBar(I mention this because I need to use either CustomScrollView or NestedScrollView) and now in the body, I was to make the first two elements not scroll when they reach the top of the…
1
vote
1 answer

Present an empty view in a Flutter widget to be used in the slivers of a CustomScrollView

Related question: How to present an empty view in flutter? Like that question, I need to return an empty view from Widget.build to indicate that there is nothing to render, but of course cannot return null. The widget will be used in the slivers of…
TechAurelian
  • 5,561
  • 5
  • 50
  • 65
1
vote
1 answer

GridView's shrinkWrap not shrink as small as possible in flutter?

I create a GridView in flutter with the shrinkWrap set to true (which I expect the GridView will be shrink exactly as the content's size). But in my demo (Green background color indicates GridView , and the Red Color indicates the content widgets in…
ximmyxiao
  • 2,622
  • 3
  • 20
  • 35
1
vote
0 answers

Webpage is not scrollable in flutter

I use CustomScrollview->SliverAppBar-> SliverFillRemaining->WebView. The problem arises that the webpage is not scrollable. When I remove SliverAppBar it works correctly. but when used SliverAppBar it's not working properly. how should I fix this…
1
vote
1 answer

CustomScrollView: Body scrolls under SliverAppBar

Flutter DartPad I have multiple SliverAppBar's within a CustomScrollView, the body of the screen is within the SliverFillRemaining. The Top SliverAppBar is pinned The Middle SliverAppBar is an image and will collapse as the user scrolls Bottom…
mrgnhnt96
  • 3,562
  • 1
  • 17
  • 36
1
vote
1 answer

Flutter: nested ListView works. Nested SliverList don't, yet ListView contains Slivers

I ran into a particular issue. I am able to compose a vertical outer ListView which contains horizontal ListViews. Think of it as multiple Friend Suggestion Row on Facebook stacked on top of each other. This works fine. Because I want to utilize the…
Pepito Fernandez
  • 2,352
  • 6
  • 32
  • 47
1
vote
0 answers

How do I implement a typical iOS 14 header with Flutter?

Almost all Apple apps as well as most third party apps on iOS have a uniform header area. It consists of a narrow app bar for buttons, below that a big title and finally a search/filter text field. The special thing about it is the animation, which…
1
vote
0 answers

How to update a CustomScrollView when returning from detail screen

I have a Scaffold that contains a CustomScrollView showing a list of items that the User has not tried (and another one that shows the items the User has tried). Using the fantastic package flutter_sticky_header, I populate the CustomScrollView with…
1
vote
1 answer

Detect DragEnd in CustomScrollView flutter?

I want to detect vertical end of dragging of a CustomScrollView what I did was something like this: GestureDetector( onVerticalDragEnd: (details) {} child: CustomScrollView(...) ); but it's not working, it seems like these two widgets have…
Shaheen Zahedi
  • 1,216
  • 3
  • 15
  • 40
1
vote
1 answer

Widgets in tabbarview take extra bottom spacing.How to justify their heights according to content?

I'm having two tabs in my tabbar and card widget which makes up both of tabbarviews. I am using Slivers in this case.CustomScrollView is my parent widget. I am displaying Texts in these views but they take extra empty spacing from bottom which I…
1
vote
1 answer

Reverse the order a SliverFixedExtentList is built in Flutter

I have a FutureBuilder on the homepage of my app that returns a SliverFixedExtentList after the future is complete. It looks something like this: import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/material.dart'; import…
1
vote
1 answer

How do I integrate a SliverGrid inside a TabBarView?

I am trying to use a CustomScrollView and a TabBar but I am unsure why my implementation does not work. I wrapped the TabBar in a SliverToBoxAdapter and still no luck. Previously I tried a GridView but that was giving unwanted behavior. Widget…
knarfamlap
  • 37
  • 1
  • 6
1
vote
1 answer

How to make a page in flutter that contain multiple sliverlist and a slivergid?

"How to create a gridview within a listview by flutter with json API" I went through the above link and its good explanation, but when i add one more sliver list with this code and if try to scroll very fast, something happens to slivergrid, only…
Sonu Babu
  • 11
  • 1
  • 3
0
votes
1 answer

how to give dynamic height to pages in customscrollview

There are four tabs(bottom nav) and every tab has a scrolling page wrapped in Indexstack, Now the issue is if IndexedStack is wrapped with Sizebox( double.infinity) it shows empty pages, but if I set the height to double.maxFinite, then it shows…
0
votes
2 answers

Flutter PageView with Scrollables inside SlidingUpPanel --> Bad state: Too many elements

EDIT: I have simplified the example and following description. I am facing an issue related to nested scrollable widgets. Here is a demo project. I have a PageView which contains 2 pages, each one containing a CustomScrollView. This PageViewis…
Jim G
  • 81
  • 6