Skip to content

Commit

Permalink
[timetable] fixed screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
liplum committed Sep 25, 2024
1 parent 10b8214 commit 2ddb571
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/timetable/page/screenshot.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_platform_widgets/flutter_platform_widgets.dart';
import 'package:go_router/go_router.dart';
import 'package:mimir/design/widget/task_builder.dart';
import 'package:mimir/timetable/widget/timetable/header.dart';
import 'package:rettulf/rettulf.dart';
import 'package:mimir/settings/settings.dart';
import 'package:mimir/utils/screenshot.dart';
Expand Down Expand Up @@ -180,7 +181,10 @@ class TimetableWeeklyScreenshotFilm extends StatelessWidget {

Widget buildBody(BuildContext context, TimetableStyleData style) {
return [
buildTitle().text(style: context.textTheme.titleLarge).padSymmetric(v: 10),
Card.filled(
color: getTimetableHeaderColor(context),
child: buildTitle().text(style: context.textTheme.titleLarge).padAll(8),
).padSymmetric(v: 4),
TimetableOneWeek(
fullSize: fullSize,
timetable: timetable,
Expand Down
3 changes: 2 additions & 1 deletion lib/timetable/widget/timetable/header.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:mimir/l10n/time.dart';
import 'package:mimir/lifecycle.dart';
import 'package:mimir/school/utils.dart';
import 'package:mimir/timetable/p13n/widget/style.dart';
import 'package:rettulf/rettulf.dart';
Expand Down Expand Up @@ -162,7 +163,7 @@ class MonthHeaderCellTextBox extends StatelessWidget {

@override
Widget build(BuildContext context) {
if (context.locale.languageCode == "zh") {
if ($locale.languageCode == "zh") {
return CustomHeaderCellTextBox(
line1: "$month",
line2: "月",
Expand Down

0 comments on commit 2ddb571

Please sign in to comment.