implemented a central haptic feedback system with configurable levels (off, reduced, full), added a Haptics facade providing semantic feedback methods, integrated haptic cues across navigation, settings toggles, and async action results, and updated version to 1.1.0+54
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import 'haptics.dart';
|
||||
|
||||
/// Copies [text] to the system clipboard and shows a SnackBar.
|
||||
Future<void> copyToClipboard(
|
||||
BuildContext context,
|
||||
@@ -8,6 +10,7 @@ Future<void> copyToClipboard(
|
||||
String successMessage = 'In Zwischenablage kopiert',
|
||||
}) async {
|
||||
await Clipboard.setData(ClipboardData(text: text));
|
||||
Haptics.selection();
|
||||
if (!context.mounted) return;
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
|
||||
Reference in New Issue
Block a user