add heavy impact
Some checks failed
Flutter analyze & test / flutter_analyze_and_test (push) Has been cancelled

This commit is contained in:
otsmr 2025-12-17 19:15:00 +01:00
parent 6b2cc85e81
commit 39d406d156
2 changed files with 5 additions and 0 deletions

View file

@ -90,6 +90,9 @@ Future<String> readLast1000Lines() async {
Future<void> _writeLogToFile(LogRecord record) async { Future<void> _writeLogToFile(LogRecord record) async {
final directory = await getApplicationSupportDirectory(); final directory = await getApplicationSupportDirectory();
final logFile = File('${directory.path}/app.log'); final logFile = File('${directory.path}/app.log');
if (!logFile.existsSync()) {
logFile.createSync(recursive: true);
}
// Prepare the log message // Prepare the log message
final logMessage = final logMessage =

View file

@ -217,11 +217,13 @@ class MainCameraController {
const ContactsCompanion(verified: Value(true)), const ContactsCompanion(verified: Value(true)),
); );
} }
await HapticFeedback.heavyImpact();
} }
} }
} else { } else {
if (profile.username != gUser.username) { if (profile.username != gUser.username) {
if (scannedNewProfiles[profile.userId.toInt()] == null) { if (scannedNewProfiles[profile.userId.toInt()] == null) {
await HapticFeedback.heavyImpact();
scannedNewProfiles[profile.userId.toInt()] = ScannedNewProfile( scannedNewProfiles[profile.userId.toInt()] = ScannedNewProfile(
profile: profile, profile: profile,
); );