From 256fab72e921942cecc88d3f79b6b71a623d189d Mon Sep 17 00:00:00 2001 From: luis901101 Date: Mon, 10 May 2021 18:15:12 -0400 Subject: [PATCH 1/2] TravelModeExt.toApiString() fixed The 'mode' query param to be used in the url request must be lower case. --- lib/src/core.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/core.dart b/lib/src/core.dart index a01c078..a5e7966 100644 --- a/lib/src/core.dart +++ b/lib/src/core.dart @@ -171,7 +171,7 @@ extension TravelModeExt on TravelMode { } String toApiString() { - return _$TravelModeEnumMap[this] ?? ''; + return (_$TravelModeEnumMap[this] ?? '').toLowerCase(); } } From 3eed0ea1bdbde307d03fba5609684e33618da0cc Mon Sep 17 00:00:00 2001 From: Luis Date: Tue, 18 Jul 2023 16:15:34 -0400 Subject: [PATCH 2/2] `http` dependency updated to '>=0.13.0 <2.0.0', to be more compatible --- pubspec.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index cdc2e91..8196574 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -7,13 +7,13 @@ environment: sdk: ">=2.12.0 <3.0.0" dependencies: - http: ^0.13.0 + http: '>=0.13.0 <2.0.0' meta: ^1.3.0 json_annotation: ^4.0.0 dev_dependencies: test: ^1.16.0 pedantic: ^1.10.0 - build_runner: ^1.11.0 - json_serializable: ^4.0.0 + build_runner: ^2.4.6 + json_serializable: ^6.7.1 coverage: ^1.0.0