refactor: Update to Dart 3.10 with . shorthands
This commit is contained in:
parent
75a37f3f7c
commit
1ea649f01e
167 changed files with 3351 additions and 3912 deletions
|
|
@ -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),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue