How to use precacheImage function in flutter?

Unable to use <a href="https://docs.flutter.io/flutter/widgets/precacheImage.html" rel="noreferrer">precacheImage</a> function to load and cache the local images from...

Flutter - SliverFillRemaining goes behind SliverPersistentHeader

I'm using a CustomScrollView that has this hierarchy: <ul> <li>SliverPersistentHeader</li> <li>SliverPersistentHeader</li> <li>SliverFillRemaining</li> </ul> Th...

Align a flutter PageView to the screen left

I want to render cards with a horizontal paged scroll and be able to see the borders of the previous and next card every time one is visible. The flutter PageView widg...

Not able to click on action buttons on SliverPersistentHeader when user scrolls up

I am building a Flutter app that uses <code>SliverPersistentHeader</code> and I added some action buttons overlay that <code>SliverPersistentHeader</code>. But the app...

Flutter - Widgets not scrolling in NestedScrollView

I am trying to make a page that contains a <code>SliverAppBar</code>, some Widgets with texts, and a <code>List</code>. I used a <code>NestedScrollView</code>...

Flutter Streams, how to access previously emitted data from the stream

I have a stream builder, and i want to access the previously emitted value from the stream. If one is familiar with distinct, they must know that distinct basically ch...

ReorderableSliverList with Futurebuilder

I'm trying to populate a ReorderableSliverList with data from an API using FutureBuilder. Model (RouteOrderTable) <pre><code> RouteOrderTable( {requir...

Flutter ExpansionTile with GridView in Sliverlist throws bool is not a subtype of type double? in type cast upon expanding

I try to have an GridView inside an ExpansionTile wrapped in a Sliverlist. To persist the state of the ExpansionTile I added a <code>PageStorageKey</code> but the by e...

Custom FlexibleSpaceBar Widget

I want that the title be under image and also be collaped with the image...... What I achieved <a href="https://i.stack.imgur.com/06oJE.gif" rel="nofoll...

How to make CustomScrollView has 2 or multiple row

Right now my solution is using a combination of <code>SliverToBoxAdapter</code>, <code>Row</code>, and <code>ShrinkWrappingViewport</code> to make the layout I want.</...

flutter - SliverList / SliverChildBuilderDelegate supply initial index or allow negative indices

I'm currently building a calendar view in Flutter using a SliverList and a SliverChildBuilderDelegate such that I don't have to render every single item in the calenda...

Controlling `GridView.builder` scroll behavior in Flutter

How can I customize or control GridView.builder scroll behavior such that it doesn't bounce back up to the top of the grid once the end of the grid is reached? I've tr...

How to achieve a One UI like Sliver AppBar using Flutter

Inspired by Samsung's new <code>One UI</code>, I wanted to implement something similar using <code>SliverAppBar</code> in Flutter. But I am unable to figure out......

Is there a way to programmatically expand the sliver app bar?

I have used sliver app bar for get expanded and collapsible app bar view, i want to know is there any way that can expand the sliver app bar when user touch on collaps...

Listview inside the scroll view in flutter

I am trying to make this type of view there 3 types of news latest,sport and old news which are having 3 listview the data is populating but i am unable to sc...