mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 06:28: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 {
|
||||
final directory = await getApplicationSupportDirectory();
|
||||
final logFile = File('${directory.path}/app.log');
|
||||
if (!logFile.existsSync()) {
|
||||
logFile.createSync(recursive: true);
|
||||
}
|
||||
|
||||
// Prepare the log message
|
||||
final logMessage =
|
||||
|
|
|
|||
|
|
@ -217,11 +217,13 @@ class MainCameraController {
|
|||
const ContactsCompanion(verified: Value(true)),
|
||||
);
|
||||
}
|
||||
await HapticFeedback.heavyImpact();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (profile.username != gUser.username) {
|
||||
if (scannedNewProfiles[profile.userId.toInt()] == null) {
|
||||
await HapticFeedback.heavyImpact();
|
||||
scannedNewProfiles[profile.userId.toInt()] = ScannedNewProfile(
|
||||
profile: profile,
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue