mirror of
https://github.com/immich-app/immich.git
synced 2025-12-19 09:13:14 +03:00
chore: bump line length to 120 (#20191)
This commit is contained in:
@@ -68,8 +68,7 @@ class BetaSyncSettings extends HookConsumerWidget {
|
||||
|
||||
// Refresh all stream queries
|
||||
database.notifyUpdates({
|
||||
for (final table in database.allTables)
|
||||
drift_db.TableUpdate.onTable(table),
|
||||
for (final table in database.allTables) drift_db.TableUpdate.onTable(table),
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -77,9 +76,7 @@ class BetaSyncSettings extends HookConsumerWidget {
|
||||
Future<void> exportDatabase() async {
|
||||
try {
|
||||
// WAL Checkpoint to ensure all changes are written to the database
|
||||
await ref
|
||||
.read(driftProvider)
|
||||
.customStatement("pragma wal_checkpoint(truncate)");
|
||||
await ref.read(driftProvider).customStatement("pragma wal_checkpoint(truncate)");
|
||||
final documentsDir = await getApplicationDocumentsDirectory();
|
||||
final dbFile = File(path.join(documentsDir.path, 'immich.sqlite'));
|
||||
|
||||
@@ -118,8 +115,7 @@ class BetaSyncSettings extends HookConsumerWidget {
|
||||
if (context.mounted) {
|
||||
context.scaffoldMessenger.showSnackBar(
|
||||
SnackBar(
|
||||
content:
|
||||
Text("Database exported successfully".t(context: context)),
|
||||
content: Text("Database exported successfully".t(context: context)),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -127,8 +123,7 @@ class BetaSyncSettings extends HookConsumerWidget {
|
||||
if (context.mounted) {
|
||||
context.scaffoldMessenger.showSnackBar(
|
||||
SnackBar(
|
||||
content:
|
||||
Text("Failed to export database: $e".t(context: context)),
|
||||
content: Text("Failed to export database: $e".t(context: context)),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -16,9 +16,7 @@ class EntitiyCountTile extends StatelessWidget {
|
||||
|
||||
String zeroPadding(int number, int targetWidth) {
|
||||
final numStr = number.toString();
|
||||
return numStr.length < targetWidth
|
||||
? "0" * (targetWidth - numStr.length)
|
||||
: "";
|
||||
return numStr.length < targetWidth ? "0" * (targetWidth - numStr.length) : "";
|
||||
}
|
||||
|
||||
int calculateMaxDigits(double availableWidth) {
|
||||
@@ -77,8 +75,7 @@ class EntitiyCountTile extends StatelessWidget {
|
||||
TextSpan(
|
||||
text: zeroPadding(count, maxDigits),
|
||||
style: TextStyle(
|
||||
color: context.colorScheme.onSurfaceSecondary
|
||||
.withAlpha(75),
|
||||
color: context.colorScheme.onSurfaceSecondary.withAlpha(75),
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
|
||||
Reference in New Issue
Block a user