refactor: Update to Dart 3.10 with . shorthands

This commit is contained in:
Christian Kußowski 2025-11-30 12:54:06 +01:00
commit 1ea649f01e
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
167 changed files with 3351 additions and 3912 deletions

View file

@ -15,17 +15,14 @@ class LogViewerState extends State<LogViewer> {
double fontSize = 14;
@override
Widget build(BuildContext context) {
final outputEvents = Logs()
.outputEvents
final outputEvents = Logs().outputEvents
.where((e) => e.level.index <= logLevel.index)
.toList();
return Scaffold(
backgroundColor: Colors.black,
appBar: AppBar(
title: Text(logLevel.toString()),
leading: BackButton(
onPressed: () => context.go('/'),
),
leading: BackButton(onPressed: () => context.go('/')),
actions: [
IconButton(
icon: const Icon(Icons.zoom_in_outlined),
@ -55,9 +52,7 @@ class LogViewerState extends State<LogViewer> {
scrollDirection: Axis.horizontal,
child: SelectableText(
outputEvents[i].toDisplayString(),
style: TextStyle(
color: outputEvents[i].color,
),
style: TextStyle(color: outputEvents[i].color),
),
),
),