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 to update items of SilverGrid or SilverList in flutter? Is there anything equivalent to notifyDatasetChanged() in Flutter?

Using the sample code provided by Emily Fortuna in a Medium article, "Slivers, Demystified", I created a Flutter list using the SilverList and SilverGrid classes. But I unable to change the data after the list is created. import…
0
votes
1 answer

Flutter: Resize children in SliverGrid

I am trying to build a BottomSheet where different emojis, images and gifs are displayed in a gridview. For this I am using a CustomScrollView Widget with SliverPadding and SliverGrid. My Problem is, that I can not adjust the size of the images and…
Martin Seubert
  • 978
  • 3
  • 21
  • 37
0
votes
1 answer

Multiple SliverAppBar in a CustomScrollView

I require to have multiple SliverAppBar, each with its own SliverList in a single view. Currently only the first SliverAppBar is responding correctly. I have of course, done extended searching on SO and Google, but have not found a solution yet! …
ShortCutNinja
  • 31
  • 1
  • 3
0
votes
1 answer

Flutter: Custom Scroll view for top layer in multi layer stack

is there a flutter widget to build to scroll like the way we see in Google Maps where top layer (i.e. list of cards) is scrolling over the bottom layer (i.e. map). And when the top layer is not obscuring bottom layer, bottom layer is also…
0
votes
0 answers

Create reusable functional component in flutter

I want to create a reusable service component in a flutter, In react-native, we can achieve this by belove code. export async function Service({ api, third_party, method, params }) { const headers = {}; set(headers, 'Cache-Control',…
0
votes
3 answers

How to prevent auto scroll down on tab2 when user scroll down on tab1 in flutter?

I created a screen using SliverAppBar, SliverPersistentHeader, TabView and ListView. If I scroll down in tab1, tab2 scrolling down automatically. So If I swith to tab2, list not starting from first item. How can I prevent this? I created simple…
Mesut Tasci
  • 2,970
  • 1
  • 30
  • 36
0
votes
1 answer

How to fix error: " The return type 'SliverStaggeredGrid' isn't a 'Widget', as defined by anonymous closure " in Flutter?

Im trying to set up a SliverStaggeredGrid widget inside of a SliverToBoxAdapter. I've already imported the package flutter_staggered_grid_view: "^0.2.5" in pubspec.yaml and imported by using import…
0
votes
1 answer

Hide device status bar when hiding SliverAppBar

I have a SliverAppBar setup like this: class PostScreen extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( body: NestedScrollView( headerSliverBuilder: (BuildContext context, bool…
José Carlos
  • 118
  • 1
  • 6
0
votes
1 answer

How to use Expanded in stepper when using columns

Here is a relatable stack overflow question . Flutter : Step widget can not hold Expanded If one reads the comments @derek-lakin, concludes that one should use a column inside a stepper, as stepper is scrollable. I am doing the exact same thing,…
GoPro
  • 642
  • 1
  • 10
  • 24
0
votes
1 answer

How can change Flutter SliverApbar ExpandedHeight more than 250.0?

I want to use SliverApbar in my project but when i set ExpandedHieght value more than 250.0 it is not resize de flexibleSpace area. Could you someone help me how we can do this?
Yasin ilhan
  • 55
  • 1
  • 8
0
votes
0 answers

flutter share image or widget directly to social media?

I am doing apps which require option to share an image or widget as an image directly to social media like Facebook,whats app.. etc. For flutter there is package called "share 0.5.3" but this package only share the text alone as…
0
votes
1 answer

Grid height based on the screen size

Hi friends I had a problem when setting the card height of the view based on the screen I had tried in it by setting the screen dynamically by using the below code please find the screen as well I need the exact 10 margins below the text, not this…
ayub baba
  • 389
  • 2
  • 8
  • 14
0
votes
1 answer

Nested scrollbars issue: NestedScrollView, SliverAppBar, SliverPersistentHeader, TabBarView, and PageView

This issue has been haunting me for some time and even though I read countless web pages, I still cannot solve it. Maybe you're able to help out! I got the following scenario: A Flutter app has a PageView with just 3 pages. First page has a simple…
Noor Dawod
  • 739
  • 5
  • 6
0
votes
1 answer

Flutter widgets library crashing after trying to log something?

I am trying to create a movie details app and this is my code so far for my page: @override Widget build(BuildContext context) { return Scaffold( body: CustomScrollView( slivers: [ SliverAppBar( …
rakeshdas
  • 2,363
  • 5
  • 20
  • 28
0
votes
1 answer

Flutter SliverAppBar similar of iPhone Google Maps

I try to implement in Flutter a similar Google Maps AppBar using CustomScrollView and SliverAppBar with an flexibleSpaceBar, but I don't found any option to display an widget only on "opened" state of AppBar. The representation of result pretended…
1 2 3
30
31