overhaul using a trip struct that notifies its ui dependencies
This commit is contained in:
@@ -17,7 +17,7 @@ Future<List<Trip>> loadTrips() async {
|
||||
}
|
||||
|
||||
if (trips.isEmpty) {
|
||||
Trip t1 = Trip(uuid: '1', cityName: 'Paris', landmarks: LinkedList<Landmark>());
|
||||
Trip t1 = Trip(uuid: '1', landmarks: LinkedList<Landmark>());
|
||||
t1.landmarks.add(
|
||||
Landmark(
|
||||
uuid: '1',
|
||||
@@ -66,7 +66,7 @@ Future<List<Trip>> loadTrips() async {
|
||||
trips.add(t1);
|
||||
|
||||
|
||||
Trip t2 = Trip(uuid: '2', cityName: 'Vienna', landmarks: LinkedList<Landmark>());
|
||||
Trip t2 = Trip(uuid: '2', landmarks: LinkedList<Landmark>());
|
||||
|
||||
t2.landmarks.add(
|
||||
Landmark(
|
||||
|
Reference in New Issue
Block a user