increase min sdk and apply new formatter

This commit is contained in:
Fabian Freund
2025-02-18 15:37:03 +01:00
parent f7885fc829
commit a1ee8bef35
266 changed files with 11329 additions and 10058 deletions
@@ -23,8 +23,9 @@ class CustomListTile extends StatelessWidget {
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
final subtitleTextTheme = theme.textTheme.bodyMedium!
.copyWith(color: theme.colorScheme.onSurfaceVariant);
final subtitleTextTheme = theme.textTheme.bodyMedium!.copyWith(
color: theme.colorScheme.onSurfaceVariant,
);
return Padding(
padding: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 8),
@@ -38,17 +39,21 @@ class CustomListTile extends StatelessWidget {
children: [
Text(
title,
style: enabled
? theme.textTheme.bodyLarge
: theme.textTheme.bodyLarge
?.copyWith(color: theme.disabledColor),
style:
enabled
? theme.textTheme.bodyLarge
: theme.textTheme.bodyLarge?.copyWith(
color: theme.disabledColor,
),
),
Text(
subtitle,
style: enabled
? subtitleTextTheme
: theme.textTheme.bodyMedium
?.copyWith(color: theme.disabledColor),
style:
enabled
? subtitleTextTheme
: theme.textTheme.bodyMedium?.copyWith(
color: theme.disabledColor,
),
),
if (content != null) content!,
],
@@ -18,17 +18,12 @@ class SyncDetailsTable extends StatelessWidget {
columnWidths: const {0: FixedColumnWidth(100)},
children: [
TableRow(
children: [
const Text('Entries'),
Text(count?.toString() ?? 'N/A'),
],
children: [const Text('Entries'), Text(count?.toString() ?? 'N/A')],
),
TableRow(
children: [
const Text('Last Sync'),
Text(
(lastSync != null) ? timeago.format(lastSync!) : 'N/A',
),
Text((lastSync != null) ? timeago.format(lastSync!) : 'N/A'),
],
),
],