Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议增加悬浮效果开关 #80

Open
Georgedamu opened this issue Jul 7, 2022 · 3 comments
Open

建议增加悬浮效果开关 #80

Georgedamu opened this issue Jul 7, 2022 · 3 comments

Comments

@Georgedamu
Copy link

Georgedamu commented Jul 7, 2022

susItem 默认有悬浮效果,但是有些case需要关闭悬浮效果,暂时没有开关支持

@Sky24n
Copy link
Member

Sky24n commented Jul 7, 2022

不返回susItemBuilder就行,参考contacts_list_page.dart

@Georgedamu
Copy link
Author

contacts_list_page

我的意思是需要字母的标识,而不需要滑动之后的悬停效果。

SuspensionView的State 的build方法

Widget build(BuildContext context) {
return Stack(
children: [
widget.itemCount == 0
? Container()
: ScrollablePositionedList.builder(
itemCount: widget.itemCount,
itemBuilder: (context, index) => _buildItem(context, index),
itemScrollController: itemScrollController,
itemPositionsListener: itemPositionsListener,
physics: widget.physics,
padding: widget.padding,
),
//这里是否应该添加开关
_buildSusWidget(context),
],
);

@mariopepe
Copy link

@Sky24n 能否请你将软件包更新为新版本的 scrollable_positioned_list ?非常感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants