Added settings screen (Vibration toggle might not work)

This commit is contained in:
MaticIvesic committed 2026-02-05 21:37:35 +01:00
1 parent 78f2dfa742
commit ba2dc23c6c
11 files changed
+617 -460

No files matched your search

+4 -8
View File
@@ -1,3 +1,4 @@
import 'package:QuickSSH/main.dart';
import 'package:flutter/material.dart';
import 'package:QuickSSH/classes/ServerCommand.dart';
import 'package:QuickSSH/services/SSHService.dart';
@@ -21,21 +22,16 @@ class ServerStatusTile extends StatelessWidget {
clipBehavior: Clip.antiAlias,
color: theme.primaryContainer,
child: InkWell(
splashColor: const Color.fromARGB(
47,
255,
255,
255,
), // Custom ripple color!
splashColor: const Color.fromARGB(47, 255, 255, 255),
highlightColor: Colors.transparent,
onDoubleTap: () {
HapticFeedback.heavyImpact();
if (settingsController.vibrationEnabled) HapticFeedback.heavyImpact();
_handleCommandTap(context, command);
},
onLongPress: () {
HapticFeedback.heavyImpact();
if (settingsController.vibrationEnabled) HapticFeedback.heavyImpact();
onEdit();
},