mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore: bump line length to 120 (#20191)
This commit is contained in:
parent
977c9b96ba
commit
ad65e9011a
517 changed files with 4520 additions and 9514 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue