Compare commits

2 Commits

Author SHA1 Message Date
48e80b56bf Changed appbar to amber 2023-12-30 13:53:18 +02:00
a84c68b01e TramStation Class declared, JSON missing 2023-12-27 20:18:36 +02:00
2 changed files with 25 additions and 0 deletions

View File

@@ -14,6 +14,9 @@ class MyApp extends StatelessWidget {
title: "Entry Point",
theme: ThemeData(
primarySwatch: Colors.blue,
appBarTheme: AppBarTheme(
color: Colors.amber[100],
),
),
// Navigashun with Routes

22
lib/stations.dart Normal file
View File

@@ -0,0 +1,22 @@
class TramStation {
final String name;
final String city;
final double latitude;
final double longitude;
TramStation({
required this.name,
required this.city,
required this.latitude,
required this.longitude,
});
factory TramStation.fromJson(Map<String, dynamic> json) {
return TramStation(
name: json['name'] as String,
city: json['city'] as String,
latitude: json['latitude'] as double,
longitude: json['longitude'] as double,
);
}
}