upgrade min sdk; run formatter

This commit is contained in:
Fabian Freund
2025-06-02 22:25:10 +02:00
parent 8fccd767af
commit ad03cc9bac
171 changed files with 4817 additions and 4685 deletions
@@ -22,23 +22,21 @@ class FailureWidget extends StatelessWidget {
children: [
ListTile(
title: Text(title ?? 'Something went wrong'),
subtitle:
exception != null
? switch (exception) {
final String string => Text(string),
_ => Text(exception.runtimeType.toString()),
}
: null,
trailing:
compact && onRetry != null
? IconButton.outlined(
onPressed: onRetry,
style: IconButton.styleFrom(
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
),
icon: const Icon(Icons.refresh_outlined),
)
: null,
subtitle: exception != null
? switch (exception) {
final String string => Text(string),
_ => Text(exception.runtimeType.toString()),
}
: null,
trailing: compact && onRetry != null
? IconButton.outlined(
onPressed: onRetry,
style: IconButton.styleFrom(
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
),
icon: const Icon(Icons.refresh_outlined),
)
: null,
textColor: Theme.of(context).colorScheme.error,
),
if (!compact && onRetry != null)