-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroutes.dart
More file actions
31 lines (29 loc) · 938 Bytes
/
routes.dart
File metadata and controls
31 lines (29 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import 'package:blimp/screens/results/results.dart';
import 'package:blimp/screens/results/results.dart';
import 'package:flutter/material.dart';
import 'model/preferences.dart';
class ResultsPageRoute {
Map holiday;
Preferences preferences;
ResultsPageRoute(Map holiday, Preferences preferences) {
this.holiday = holiday;
this.preferences = preferences;
}
ResultsPage page() {
return ResultsPage(
destId: holiday["destId"],
name: holiday["name"],
countryInfo: holiday["countryInfo"],
weather: holiday["weather"],
wiki: holiday["wiki"],
imageURLs: holiday["imageURLs"],
itinerary: holiday["itinerary"],
flights: holiday["travel"],
accommodation: holiday["accommodation"],
allFlights: holiday["all_travel"],
allAccommodation: holiday["all_accommodation"],
allActivities: holiday["all_activities"],
preferences: preferences,
);
}
}