Skip to content
This repository has been archived by the owner on May 7, 2023. It is now read-only.

Add sandeep to Contributors list #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Contributors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed current bug related to Dio and minor changes in lib/src/client.dart in dio
1 change: 1 addition & 0 deletions lib/src/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ class Traccar {
}
dynamic response;
try {
_dio.options.headers['content-Type'] = 'application/json';
response = await _dio.get<Map<String, dynamic>>(addr,
queryParameters: <String, dynamic>{"token": userToken});
} on DioError catch (e) {
Expand Down
8 changes: 4 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ environment:

dependencies:
web_socket_channel: ^1.1.0
dio: ^3.0.3
dio: ^3.0.10
latlong: ^0.6.1
pedantic: ^1.6.0
meta: ^1.1.6
geopoint: ^0.6.1
pedantic: ^1.9.2
meta: ^1.2.2
geopoint: ^0.7.1
device:
path: ../device