opt settings

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-02-05 18:11:02 +08:00
parent cfa925549e
commit 1ad710c1cf
8 changed files with 242 additions and 226 deletions

View File

@@ -335,6 +335,7 @@ class ListTile extends StatelessWidget {
this.contentPadding,
this.enabled = true,
this.onTap,
this.onTapUp,
this.onLongPress,
this.onSecondaryTap,
this.onSecondaryTapUp,
@@ -563,6 +564,8 @@ class ListTile extends StatelessWidget {
/// Inoperative if [enabled] is false.
final GestureTapCallback? onTap;
final GestureTapUpCallback? onTapUp;
/// Called when the user long-presses on this list tile.
///
/// Inoperative if [enabled] is false.
@@ -984,6 +987,7 @@ class ListTile extends StatelessWidget {
return InkWell(
customBorder: shape ?? tileTheme.shape,
onTap: enabled ? onTap : null,
onTapUp: enabled ? onTapUp : null,
onLongPress: enabled ? onLongPress : null,
onSecondaryTap: enabled ? onSecondaryTap : null,
onSecondaryTapUp: enabled ? onSecondaryTapUp : null,