Public Access
squash! chore: fix some linter warnings
This commit is contained in:
+2
-2
@@ -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(() {});
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
@@ -1106,4 +1103,4 @@ enum VehicleType {
|
||||
subway,
|
||||
regionalTrain,
|
||||
PLACEHOLDER,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user