[Bug]: Linux: Position's timestamp can't be required #1371
Labels
P1
High-priority issues at the top of the work list.
platform: linux
Issue is related to the Linux platform.
type: bug
Something isn't working
Please check the following before submitting a new issue.
Please select affected platform(s)
Steps to reproduce
geolocator
andgeolocator_linux
flutter build linux
Expected results
geolocator
andgeolocator_linux
flutter build linux
Actual results
Code sample
Linked to #1145
Because the new
geolocator_platform_interface
(4.2.0) has remove the fact thattimestamp
is optional (#1362), thegeolocator_linux
(0.2.0) cannot build because of this code snippet:Inside the
geoclue
package that is used under the hood, thetimestamp
value is indeed nullable, creating this errorMaybe assigning a default value to timestamp during
toPosition
could be a solution?Screenshots or video
No response
Version
geolocator_linux: 0.2.0 | geolocator: 10.1.0 | geolocator_platform_interface: 4.2.0
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: