Add configurable scroll threshold (#910)

* Add configurable scroll threshold

* update

---------

Co-authored-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
Tong xuewen
2025-07-29 23:02:05 +08:00
committed by GitHub
parent cf403aaf78
commit 3eb9c5b8ba
8 changed files with 191 additions and 103 deletions

View File

@@ -131,9 +131,8 @@ class _SetSwitchItemState extends State<SetSwitchItem> {
return ListTile(
contentPadding: widget.contentPadding,
enabled: widget.onTap != null ? val : true,
onTap: () => widget.onTap != null
? widget.onTap?.call()
: switchChange(theme, null),
onTap: () =>
widget.onTap != null ? widget.onTap!() : switchChange(theme, null),
title: Text(widget.title!, style: titleStyle),
subtitle: widget.subtitle != null
? Text(widget.subtitle!, style: subTitleStyle)