Questions tagged [flutter-sliver]

A Sliver is a portion of a scrollable area that animate on scroll events, like stick to the top or expand when pulled to the bottom. You can use slivers to achieve custom scrolling effects. Flutter has a few Sliver implementations out of the box, such as SliverList, SliverGrid and SliverAppBar.

A Sliver is a portion of a scrollable area that animate on scroll events, like stick to the top or expand when pulled to the bottom.

Flutter has a few Sliver implementations out of the box, such as:

Check this page on the docs for general Sliver information in flutter.

460 questions
0
votes
1 answer

How can i animate a SliverAppBar to hide it on scrolling a TabBarView

I want to animate a SliverAppBar that is defined in a NestedScrollView. I want to have the same animation Whatsapp has while scrolling to the camera tab but using Animated Widgets as Slivers parent is forbidden. how can i achieve that? here is an…
0
votes
1 answer

Using SliverPersistentHeader without that the Header is shrinking but just disappearing in Flutter Web

I'm creating a Website and would want to have like a SliverAppBar oder a SliverPersistentHeader with an Image Carousel. That I can totally make, but I don't want the Image Carousel to shrink, when im scrolling down. Instead I would want the…
Tom
  • 503
  • 1
  • 4
  • 8
0
votes
1 answer

How to make an action botton(not really, it just a box of text)on SliverAppBar

Now I use SliverAppBar and if I want to move the Text "Choices"(in the picture) to the right and when clicked(Click on to the text) it goes to another page. How I can do!! The one I made it's too close to the border and too low not at the same…
0
votes
0 answers

How to set the SliverAppBar's Title style from the MaterialApp's theme parameter?

If I would like to set the style of a regular appbar title from the MaterialApp theme parameter, I would do the following: ThemeData(appBarTheme: const AppBarTheme( textTheme: TextTheme( headline6: TextStyle( color: Colors.red, …
0
votes
1 answer

How to animate the color of AppBar on scroll?

How can I animate the color of my SliverAppBar as I scroll through the CustomScrollView? Scaffold( body: CustomScrollView( controller: _scrollController, slivers: [ SliverAppBar(...), buildBody(), ], ), );
rasitayaz
  • 400
  • 2
  • 16
0
votes
0 answers

NestedScrollView No Scroll when List is Short with Float SliverAppBar

I am having a ListView, that is required to use pull to refresh function, and a floating header is needed on the design. Therefore I have tried to use the NestedScrollView to fulfill the task. However, I find that even if the list is short, as the…
CbL
  • 734
  • 5
  • 22
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
1 answer

SliverList and Getx StateMixin support

I'm struggling trying to make a GetxController work with a SliverList. In particular, my controller returns the view state with StateMixin from Getx library. class ItinerariesByCreatorPageController extends GetxController with…
Nicola Gallazzi
  • 7,897
  • 6
  • 45
  • 64
0
votes
1 answer

How to have a nested SliverList in Flutter?

I am using a SliverAppBar and SliverList inside a CustomScrollView. Now I want to build a another ListView inside the SliverList I have. But it doesn't let me.
Abdullah Riaz
  • 536
  • 5
  • 19
0
votes
2 answers

The argument type 'BlocBuilder' can't be assigned to the parameter type 'SliverChildDelegate'

I need to load data from BlocBuilder to a SliverGrid to show a grid of items. When I use BlocBuilder as SliverGrid's delegate, I get this error: The argument type 'BlocBuilder' can't be assigned to the parameter type…
Hossein Yousefpour
  • 3,827
  • 3
  • 23
  • 35
0
votes
1 answer

Flutter FlexibleSpacebar not stretching on Android

I copied the sample code in the Flutter page on using FlexibleSpaceBar class to check it out on iOS and Android. It is working as expected in iOS but not stretching in Android. Is there a compatibility issue on the the version of Android it would…
Axel
  • 685
  • 5
  • 14
0
votes
0 answers

Flutter - using ListView.builder inside FutureBuilder and SliverList - scroll behaviour

I'm trying to improve my app and want to wrap an existing FutureBuilder with a SliverList. Unfortunately I'm having a strange and incomprehensible scrolling behaviour. Here's my code so far: @override Widget build(BuildContext context) { …
lechnerio
  • 884
  • 1
  • 16
  • 44
0
votes
1 answer

Flutter Custom SliverAppBar

I would like to understand if there's a way to make the default sliver app bar in flutter to look more like this design I found online. PS: I am familiar with the default way of doing this but to make use of flutter's extensively customizable…
Nzadibe
  • 598
  • 2
  • 11
  • 28
0
votes
1 answer

Flutter SliverList and CustomScrollView Error: 'owner.debugCurrentBuilderTarget == this' : is not true

Hello everyone I am trying to build a reusable SliverList into which I just pass the sliver widgets as a List to display, and doubles for padding however currently getting this error The code of the reusable widget I am trying to build class…
0
votes
1 answer

Adding Search function to SliverList in Flutter

I'm trying to add a search function to my SliverList containing multiple list items. Just before looping through my List of elements I added the TextField to implement the search function itself. Padding( padding: const EdgeInsets.all(8.0), …
lechnerio
  • 884
  • 1
  • 16
  • 44