自习室优化ok

This commit is contained in:
zhutao
2025-11-28 13:31:23 +08:00
parent 4ecb0c35d6
commit 57305c5804
57 changed files with 2500 additions and 597 deletions

View File

@@ -2,6 +2,7 @@ import 'package:app/config/theme/base/app_theme_ext.dart';
import 'package:app/pages/student/home/viewmodel/s_home_vm.dart';
import 'package:app/router/route_paths.dart';
import 'package:app/utils/permission.dart';
import 'package:app/utils/time.dart';
import 'package:app/widgets/base/button/index.dart';
import 'package:app/widgets/base/empty/index.dart';
import 'package:cached_network_image/cached_network_image.dart';
@@ -102,7 +103,7 @@ class _STodayCardState extends State<STodayCard> {
children: [
Text(vm.roomInfo?.teacherName ?? ""),
Text(
vm.roomInfo?.teacherBackground ?? "",
vm.roomInfo?.teacherSchoolName ?? "",
style: Theme.of(context).textTheme.labelLarge,
),
],
@@ -121,7 +122,7 @@ class _STodayCardState extends State<STodayCard> {
),
InfoItem(
label: "自习时长",
value: "${vm.roomMinutes} 分钟",
value: "${formatSeconds(vm.roomMinutes * 60, 'hh小时mm分钟')} ",
icon: RemixIcons.timer_line,
color: context.success,
),