mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 19:58:41 +00:00
add heavy impact
Some checks failed
Flutter analyze & test / flutter_analyze_and_test (push) Has been cancelled
Some checks failed
Flutter analyze & test / flutter_analyze_and_test (push) Has been cancelled
This commit is contained in:
parent
6b2cc85e81
commit
39d406d156
2 changed files with 5 additions and 0 deletions
|
|
@ -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 =
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue