I want to achieve the style like the picture.
A ListView
containing a few Container
, and each container has some text. When scrolling the ListView
, I want to gradually faded part of the content of the last Container
. The last means the one displayed in the bottom of the ListView
.
this is what I have done. Some explanation: timeTable
is a widget in front of the ListView, and statisticItem
is exactly the Container
that I mentioned above.
body: Column(
children: <Widget>[
timeTable(),
SizedBox(height: 18,),
Expanded(
child: ListView.separated(
itemCount: 5,
separatorBuilder: (context, index) => SizedBox(height: 24.0,),
itemBuilder: (context, index) => statisticItem(),
),
)
],
)
Also, I have made some effort in shaderMask, but I can only change the background color. Any idea I'll we very appreciative.