forked from bluemix/Tourism-Demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
399 additions
and
399 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ffmpeg -i Flutter-tourism-demo-2.mp4 -vf "crop=in_h*4/3:in_h,scale=-2:600" -t 4 SomeOutput.mp4 |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.1 MB
art/screenshots/Simulator Screen Shot - iPhone 6s - 2018-06-22 at 04.15.39.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.11 MB
art/screenshots/Simulator Screen Shot - iPhone 6s - 2018-06-22 at 04.15.41.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.16 MB
art/screenshots/Simulator Screen Shot - iPhone 6s - 2018-06-22 at 04.31.01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.2 MB
art/screenshots/Simulator Screen Shot - iPhone 6s - 2018-06-22 at 04.56.47.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.2 MB
art/screenshots/Simulator Screen Shot - iPhone 6s - 2018-06-22 at 04.56.50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import 'dart:async'; | ||
import 'dart:convert'; | ||
|
||
import 'package:http/http.dart'; | ||
import 'package:tourism_demo/models/models.dart'; | ||
import 'package:tourism_demo/utils/http_utils.dart'; | ||
|
||
class OdooFlaskAPI { | ||
// CHECKS | ||
Future<List<Destination>> fetchDestinations() async { | ||
print('fetching destinations...'); | ||
var checksUrlString = ''; | ||
|
||
Response response = await getRequest(checksUrlString, {}); | ||
List employeeChecksMap = json.decode(response.body); | ||
List<Destination> employeeChecks = | ||
employeeChecksMap.map((check) => Destination.fromJson(check)).toList(); | ||
|
||
print('${employeeChecks.length} checks fetched...'); | ||
|
||
if (employeeChecks.isNotEmpty) { | ||
return employeeChecks; | ||
} | ||
|
||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import 'dart:async'; | ||
import 'dart:convert'; | ||
import 'package:http/http.dart' as http; | ||
import 'package:http/http.dart'; | ||
|
||
|
||
Future<Response> getRequest(String url, Map<String, String> headers,) async { | ||
final _client = new http.Client(); | ||
Response response = await _client | ||
.get(url, headers: headers) | ||
.whenComplete(_client.close); | ||
return response; | ||
} | ||
|
||
Future<Response> postRequest( | ||
String url, Map<String, String> headers, Map<String, dynamic> body) async { | ||
final _client = new http.Client(); | ||
Response response = await _client | ||
.post(url, body: json.encode(body), headers: headers) | ||
.whenComplete(_client.close); | ||
return response; | ||
} |
Oops, something went wrong.