feat: add course bar length setting and clear blue glass Dock
This commit is contained in:
@@ -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),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user