Open kightsonsanom opened 3 years ago
Only in this way,Refer to this example contacts_list_page
I'm having the same issue but I want it to be only sticky, and it seems to be doing both as shown in the gif. My current code is as follows:
AzListView(
data: displayedUserList,
physics: const AlwaysScrollableScrollPhysics(),
itemCount: displayedUserList.length,
itemBuilder: (BuildContext context, int index) {
UserModel model = displayedUserList[index];
return getListItem(context, model);
},
itemScrollController: itemScrollController,
susItemBuilder: (BuildContext context, int index) {
UserModel model = displayedUserList[index];
return getSusItem(context, model.getSuspensionTag());
},
indexBarOptions: const IndexBarOptions(
needRebuild: true,
selectTextStyle: TextStyle(
fontSize: 12,
color: Colors.white,
fontWeight: FontWeight.w500),
selectItemDecoration: BoxDecoration(
shape: BoxShape.circle, color: Color(0xFF333333)),
indexHintWidth: 96,
indexHintHeight: 97,
indexHintDecoration: BoxDecoration(
image: DecorationImage(
image: AssetImage('assets/images/ic_index_bar_bubble_white.png'),
fit: BoxFit.contain,
),
),
indexHintAlignment: Alignment.centerRight,
indexHintTextStyle:
TextStyle(fontSize: 24.0, color: Colors.black87),
indexHintOffset: Offset(-30, 0),
),
)
Any ideas?
Hello, first of all great library! very customizable. I have a question regarding sticky
susItems
. Is it possible to disable their stickiness? I would prefer them to stay in one place. I saw solutions with usingOffstage
widget for providing headers in theitemBuilder
callback but I wonder if it is possible to usersysItemBuilder
with the same effect.This is what I have:
And the code
This is what I want:
Current code to achieve this: