1
This commit is contained in:
@@ -26,14 +26,10 @@ class HomeViewModel extends ChangeNotifier {
|
||||
///计算会议时间
|
||||
int get roomMinutes {
|
||||
if (roomInfo == null) return 0;
|
||||
final start = parseTime(roomInfo!.startTime);
|
||||
final end = parseTime(roomInfo!.endTime);
|
||||
|
||||
final start = roomInfo!.startTime;
|
||||
final end = roomInfo!.endTime;
|
||||
|
||||
final s = DateTime.parse('2000-01-01 $start:00');
|
||||
final e = DateTime.parse('2000-01-01 $end:00');
|
||||
|
||||
return e.difference(s).inMinutes;
|
||||
return end.difference(start).inMinutes;
|
||||
}
|
||||
|
||||
///能否进入房间
|
||||
|
||||
Reference in New Issue
Block a user