feat: 搜索直播间、用户

This commit is contained in:
guozhigq
2023-06-20 22:52:47 +08:00
parent 7e7892aab2
commit c2f8f143f8
15 changed files with 801 additions and 59 deletions

View File

@ -26,8 +26,11 @@ class Utils {
}
}
static String timeFormat(int time) {
static String timeFormat(dynamic time) {
// 1小时内
if (time is String && time.contains(':')) {
return time;
}
if (time < 3600) {
int minute = time ~/ 60;
double res = time / 60;