chore: bump line length to 120 (#20191)

This commit is contained in:
shenlong 2025-07-25 08:07:22 +05:30 committed by GitHub
parent 977c9b96ba
commit ad65e9011a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
517 changed files with 4520 additions and 9514 deletions

View file

@ -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)),
),
);
}

View file

@ -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(