feat: add course bar length setting and clear blue glass Dock

This commit is contained in:
Codex
2026-10-13 12:51:27 +08:00
parent 8403be05da
commit 9193fd8e43
11 changed files with 444 additions and 138 deletions
@@ -8,9 +8,17 @@ import 'package:hepan_everyday/domain/app_settings.dart';
void main() {
setUpAll(tzdata.initializeTimeZones);
for (final scale in [1.0, 2.0]) {
for (final variant in [
(1.0, 0.8),
(1.0, 1.25),
(1.0, 2.0),
(2.0, 0.8),
(2.0, 1.25),
(2.0, 2.0),
]) {
final (scale, heightScale) = variant;
testWidgets(
'seven days and full teacher/room fit equal duration cards at scale $scale',
'seven days and full teacher/room fit equal duration cards at scale $scale / length $heightScale',
(tester) async {
tester.view.physicalSize = const Size(360, 800);
tester.view.devicePixelRatio = 1;
@@ -45,7 +53,7 @@ void main() {
events: events,
monday: term.firstMonday,
today: term.startDate,
settings: const AppSettings(),
settings: AppSettings(courseHeightScale: heightScale),
),
),
),