From 0069f370c2e0106464fcf021176c2598e6957bbe Mon Sep 17 00:00:00 2001 From: fbachus Date: Wed, 29 Jul 2026 16:31:03 +0200 Subject: [PATCH] chore: use some of 'dart analyze's quick fixes and apply formatter --- lib/main.dart | 5 ++++- lib/transport_helper.dart | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 284c60a..652136c 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -199,6 +199,7 @@ class StationList extends StatelessWidget { final ValueChanged onTapped; StationList({ + super.key, required this.stationList, required this.onTapped, }); @@ -298,6 +299,7 @@ class DepartureList extends StatelessWidget { final ValueChanged onTapped; const DepartureList({ + super.key, required this.departureList, required this.onTapped, }); @@ -421,6 +423,7 @@ class ArrivalList extends StatelessWidget { final Function onTapped; const ArrivalList({ + super.key, required this.departure, required this.arrivalList, required this.onTapped, @@ -439,4 +442,4 @@ class ArrivalList extends StatelessWidget { ], ); } -} \ No newline at end of file +} diff --git a/lib/transport_helper.dart b/lib/transport_helper.dart index 8428f35..38e7ab3 100644 --- a/lib/transport_helper.dart +++ b/lib/transport_helper.dart @@ -2,7 +2,6 @@ import 'package:sqflite/sqflite.dart'; // import './state_helper.dart'; // import './db_helper.dart'; - class DbHelper { static late Database db; static String dbName = ""; @@ -1103,4 +1102,4 @@ enum VehicleType { subway, regionalTrain, PLACEHOLDER, -} \ No newline at end of file +}