Skip to content

Commit 5e980cc

Browse files
authored
Merge pull request #35
main
2 parents 5eceb78 + 6e1db6d commit 5e980cc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/models/position.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Position {
4747
course: (json['course'] as num?)?.toDouble() ?? 0.0,
4848
address: json['address'] as String?,
4949
accuracy: (json['accuracy'] as num?)?.toDouble(),
50-
batteryLevel: json['attributes']?['batteryLevel'] as int?,
50+
batteryLevel: (json['attributes']?['batteryLevel'] as num?)?.toInt(),
5151
attributes: json['attributes'] as Map<String, dynamic>?,
5252
);
5353
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: manager
22
description: "Moviflotte"
33
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
44

5-
version: 3.3.11+1
5+
version: 3.3.12+1
66

77
environment:
88
sdk: ^3.9.2

0 commit comments

Comments
 (0)