From 03dd111dd026cefaf5cfada39e3342d31b71848d Mon Sep 17 00:00:00 2001 From: Joel Winarske Date: Thu, 5 Sep 2024 15:42:22 -0700 Subject: Flutter SDK 3.24.1 -update packages -format files -fix analyze issues Change-Id: I9eb84f1bca7623ce676695904f172aff127c8ced Signed-off-by: Joel Winarske (cherry picked from commit 15093ee4880d535c65faed929801c2d79d1a212c) --- lib/provider.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/provider.dart') diff --git a/lib/provider.dart b/lib/provider.dart index c96c8e4..e082bf0 100644 --- a/lib/provider.dart +++ b/lib/provider.dart @@ -78,7 +78,11 @@ double calculateDistance(point1, point2) { double halfCosLatDiff = cos((point2.latitude - point1.latitude) * p) / 2; double halfCosLngDiff = cos((point2.longitude - point1.longitude) * p) / 2; - double dist = 0.5 - halfCosLatDiff + cos(point1.latitude * p) * cos(point2.latitude * p) * (0.5 - halfCosLngDiff); + double dist = 0.5 - + halfCosLatDiff + + cos(point1.latitude * p) * + cos(point2.latitude * p) * + (0.5 - halfCosLngDiff); return 12742 * asin(sqrt(dist)); } -- cgit