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
|
// TODO :find a better way to show the list
|
||||||
void showResult(Future<List<Station>> future_id) async {
|
void showResult(Future<List<Station>> futureId) async {
|
||||||
stationList = await future_id;
|
stationList = await futureId;
|
||||||
id = stationList[0].id;
|
id = stationList[0].id;
|
||||||
setState(() {});
|
setState(() {});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import 'package:sqflite/sqflite.dart';
|
|||||||
// import './state_helper.dart';
|
// import './state_helper.dart';
|
||||||
// import './db_helper.dart';
|
// import './db_helper.dart';
|
||||||
|
|
||||||
// TODO: get access to DB
|
|
||||||
|
|
||||||
class DbHelper {
|
class DbHelper {
|
||||||
static late Database db;
|
static late Database db;
|
||||||
@@ -106,7 +105,6 @@ class Journey {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// from trip API request
|
// from trip API request
|
||||||
// TODO: how to connect this best with the database for read/write?
|
|
||||||
factory Journey.fromJson(Map<String, dynamic> json) {
|
factory Journey.fromJson(Map<String, dynamic> json) {
|
||||||
Journey newJourney = Journey(
|
Journey newJourney = Journey(
|
||||||
segments: json["LegList"]["Leg"].map((leg) => Segment.fromJson(leg)),
|
segments: json["LegList"]["Leg"].map((leg) => Segment.fromJson(leg)),
|
||||||
@@ -558,7 +556,6 @@ class Station {
|
|||||||
.toList();
|
.toList();
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: usage
|
|
||||||
factory Station.fromMap(
|
factory Station.fromMap(
|
||||||
Map<String, Object?> map, {
|
Map<String, Object?> map, {
|
||||||
List<Line>? stationLines,
|
List<Line>? stationLines,
|
||||||
@@ -1106,4 +1103,4 @@ enum VehicleType {
|
|||||||
subway,
|
subway,
|
||||||
regionalTrain,
|
regionalTrain,
|
||||||
PLACEHOLDER,
|
PLACEHOLDER,
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user