squash! chore: fix some linter warnings

This commit is contained in:
fbachus
2026-07-29 14:33:56 +02:00
parent 708a524abf
commit 806e96d1c5
2 changed files with 3 additions and 6 deletions
+2 -2
View File
@@ -61,8 +61,8 @@ class _MyHomePageState extends State<MyHomePage> {
}
// TODO :find a better way to show the list
void showResult(Future<List<Station>> future_id) async {
stationList = await future_id;
void showResult(Future<List<Station>> futureId) async {
stationList = await futureId;
id = stationList[0].id;
setState(() {});
}
-3
View File
@@ -2,7 +2,6 @@ import 'package:sqflite/sqflite.dart';
// import './state_helper.dart';
// import './db_helper.dart';
// TODO: get access to DB
class DbHelper {
static late Database db;
@@ -106,7 +105,6 @@ class Journey {
}
// from trip API request
// TODO: how to connect this best with the database for read/write?
factory Journey.fromJson(Map<String, dynamic> json) {
Journey newJourney = Journey(
segments: json["LegList"]["Leg"].map((leg) => Segment.fromJson(leg)),
@@ -558,7 +556,6 @@ class Station {
.toList();
}
//TODO: usage
factory Station.fromMap(
Map<String, Object?> map, {
List<Line>? stationLines,