Questions tagged [customscrollview]

85 questions
0
votes
0 answers

how can I achieve these effects in design (snap effect, change align when scrolling)

I need to design screen like this in short videovideo_link I did this but its not very similar to the previous effect here I create CustomScrollView with NotificationListener to achieve snap effect, but is still begging and isused TransitionAppBar…
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 can I replace appBar with SliverAppBar in my code?

class _HomepageState extends State { int pageNum = 0; final pages = [ TodayPage(), /*HistoryPage()*/ ]; @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('Today…
BlancShon
  • 1
  • 1
0
votes
1 answer

Can i only return ListTile in SliversList under an if condition?

I am trying to only return a ListTile in a SliversList in a CustomScrollView if the user I want to view has something specific in his database section. How can I achieve this? I want to make something like this: CustomScrollView( slivers: [ …
0
votes
1 answer

How to prevent viewport offset of CustomScrollView when delete items?

I am implementing a chat and there is a problem when items removes from list. If I delete several items from bottom of the CustomScrollView, the scroll position offsets up depending on sum of height of deleting items. How can I prevent it? import…
Aleksey
  • 15
  • 5
0
votes
1 answer

How to Create a Custom Scrollbar in UWP?

I need to create a custom Scrollbar in UWP ? But I can't find any clear logic to calculate Scrollbar thumb width and Position. What I have tried…
0
votes
1 answer

How to nest a TabBarView's ListView in a CustomScrollView?

The thing I want to layout is like this Because I want the ListView scroll with outside , So I want to make the ListView to the SliverListView . But this will make the error: A RenderRepaintBoundary expected a child of type RenderBox but received…
ximmyxiao
  • 2,622
  • 3
  • 20
  • 35
0
votes
1 answer

Flutter NestedScrollView header bounce with TabBar and TabbarView

Header pull to refresh can be pulled up when I want to drag it up. Tabbar sticky. ListView can swipe to another page.
ligang
  • 29
  • 7
0
votes
1 answer

How to detect tap (or any other gesture event) on Positioned widget on another widget in CustomScrollView?

Here is a widgets tree: CustomScrollView(Clip.none) SliverList Column HourItem SizedBox Stack Positioned(top: 30) The result is: I can handle tap area where blue arrow is point on, and can't where red…
0
votes
1 answer

Jumping to a particular sliver in a flutter sliverlist

How can I programmatically jump (or scroll) to a particular sliver in a sliver list where the slivers vary in height? The code below loads the text of a book into a custom scroll view, with a chapter for each widget. When the action button is…
Frank H
  • 13
  • 4
0
votes
0 answers

How to make fixed SliverAppBar title with bottom overlapped component

I'm trying to get below output with CustomScrollView and Slivers. But I'm having two problems with the SliverAppBar, 1) Title bar hide with scroll 2) SliverAppBar bottom property getting overflow on scroll. This is my code so far. I have added the…
0
votes
0 answers

Correct the scrolling behavior within another scroll in Flutter

I have unwanted behavior with a CustomScrollView inside another CustomScrollView. Below I show the desired behavior: Desired behavior GIF Below I show the actual behavior: Actual behavior GIF I have tried the NestedScrollView class however I cannot…
0
votes
1 answer

Is there any way to make one page scroll in flutter?

I want to use CustomScrollView to make a SliverList where each child would be a full page Widget and I want them to be some kind of a vertical slider. How may I make it in flutter?
0
votes
1 answer

Render constraints for SliverList

It is possible to set some constraints on where the SliverList stops rendering? For example, if we have a transparent SliverAppBar and SliverList, the sliver list will be visible behind the SliverAppBar, can we somehow set the render constraints to…
Levy77
  • 219
  • 1
  • 9
0
votes
1 answer

Flutter: Creating a scroll view that contracts center item before allowing the list to scroll

I'm creating a scroll view that pads that center item with some extra space vertically. I want to accomplish two things: 1- Shrink the center item's padding at the same rate the user is moving his finger. For example, if the padding of the center…