Skip to content

Commit

Permalink
Fixed CI warnings (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 committed Nov 22, 2024
1 parent 8252ca1 commit 9bc706e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
17 changes: 11 additions & 6 deletions lib/src/pages/logs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -142,27 +142,32 @@ List<Widget> getLogsActions(BuildContext context, LogsViewModel model) => [
ListTile(
leading: criticalWidget,
title: const Text("Critical"),
subtitle: const Text("The rover is in a broken state and may shutdown")),
subtitle: const Text("The rover is in a broken state and may shutdown"),),
const ListTile(
leading: errorWidget,
title: Text("Error"),
subtitle: Text("Something you tried didn't work, but the rover can still function")),
subtitle: Text("Something you tried didn't work, but the rover can still function"),
),
const ListTile(
leading: warningWidget,
title: Text("Warning"),
subtitle: Text("Something may have gone wrong, you should check it out")),
subtitle: Text("Something may have gone wrong, you should check it out"),
),
ListTile(
leading: infoWidget,
title: const Text("Info"),
subtitle: const Text("The rover is functioning normally")),
subtitle: const Text("The rover is functioning normally"),
),
const ListTile(
leading: debugWidget,
title: Text("Debug"),
subtitle: Text("Extra information that shows what the rover's thinking")),
subtitle: Text("Extra information that shows what the rover's thinking"),
),
const ListTile(
leading: traceWidget,
title: Text("Trace"),
subtitle: Text("Values from the code to debug specific issues")),
subtitle: Text("Values from the code to debug specific issues"),
),
const SizedBox(height: 12),
],
),
Expand Down
7 changes: 6 additions & 1 deletion lib/src/pages/mini_metrics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import "package:flutter/material.dart";
import "package:rover_dashboard/models.dart";
import "package:rover_dashboard/widgets.dart";

/// Metrics for the Mini Dashboard
///
/// Displays 2 columns of expansion tiles, the left is the regular rover
/// metrics, and the right is the controls
class MiniMetrics extends ReusableReactiveWidget<RoverMetrics> {
/// Const constructor for mini metrics
const MiniMetrics(super.model);

@override
Expand All @@ -12,7 +17,7 @@ class MiniMetrics extends ReusableReactiveWidget<RoverMetrics> {
Expanded(
flex: 3,
child: ListView(
padding: const EdgeInsets.symmetric(horizontal: 8.0, vertical: 4.0),
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
children: [
Text(
"Metrics",
Expand Down

0 comments on commit 9bc706e

Please sign in to comment.