mirror of
https://github.com/MoxiFoxi411/QuickSSH.git
synced 2026-11-08 19:34:55 +00:00
Added settings screen (Vibration toggle might not work)
This commit is contained in:
1 parent
78f2dfa742
commit
ba2dc23c6c
11 files changed
+617
-460
No files matched your search
@@ -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();
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user