further refactoring and location search dev

This commit is contained in:
Joshua Burman
2024-12-28 12:41:57 -05:00
parent 8e0ec614a0
commit afe633e697
11 changed files with 179 additions and 113 deletions

View File

@ -1,3 +0,0 @@
import 'package:intl/intl.dart';
final DateFormat dateFormat = DateFormat('yyyy-MM-dd');

View File

@ -0,0 +1,11 @@
import 'package:intl/intl.dart';
final DateFormat dateFormat = DateFormat('yyyy-MM-dd');
String formattedTime(int timeInSecond) {
int sec = timeInSecond % 60;
int min = (timeInSecond / 60).floor();
String minute = min.toString().length <= 1 ? "0$min" : "$min";
String second = sec.toString().length <= 1 ? "0$sec" : "$sec";
return "$minute:$second";
}