mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 19:14:42 +08:00
Add configurable scroll threshold (#910)
* Add configurable scroll threshold * update --------- Co-authored-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user