diff --git a/README.md b/README.md index 0aa42c7..dd498c2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # parking_system -Download [here](https://drive.google.com/file/d/1UcO6HYqFbsynQo0NCSF38wkkloqozmb2/view?usp=sharing) +Download [here](https://drive.google.com/file/d/1Ag8yBDnlf5JXT8nGj3N9bkCtH8YBvNJH/view?usp=sharing) diff --git a/lib/backend/timediff.dart b/lib/backend/timediff.dart index f2e9d2b..196b9c5 100644 --- a/lib/backend/timediff.dart +++ b/lib/backend/timediff.dart @@ -4,12 +4,12 @@ String getFare(String time, String vehicleType) { final difference = currentTime.difference(parkedDate); if (vehicleType.startsWith("4")) { double fare = 30 * (difference.inHours / 3); - return fare == 0 ? "30" : "$fare"; + return fare == 0 ? "30" : fare.toString().substring(0,3); } else if (vehicleType.startsWith("2")) { double fare = 20 * (difference.inHours / 3); - return fare == 0 ? "20" : "$fare"; + return fare == 0 ? "20" : fare.toString().substring(0,3); } else { double fare = 5 * (difference.inHours / 3); - return fare == 0 ? "5" : "$fare"; + return fare == 0 ? "5" : fare.toString().substring(0,3); } }