Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 48e80b56bf | |||
| a84c68b01e |
@@ -14,6 +14,9 @@ class MyApp extends StatelessWidget {
|
|||||||
title: "Entry Point",
|
title: "Entry Point",
|
||||||
theme: ThemeData(
|
theme: ThemeData(
|
||||||
primarySwatch: Colors.blue,
|
primarySwatch: Colors.blue,
|
||||||
|
appBarTheme: AppBarTheme(
|
||||||
|
color: Colors.amber[100],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
// Navigashun with Routes
|
// Navigashun with Routes
|
||||||
|
|||||||
22
lib/stations.dart
Normal file
22
lib/stations.dart
Normal 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,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user