From f24f340d63a6135d8aa93e2969ba7f044a96ec0d Mon Sep 17 00:00:00 2001 From: balint1414 Date: Fri, 3 Oct 2025 16:08:39 +0200 Subject: [PATCH] =?UTF-8?q?+=20Tant=C3=A1rgy=20megtekint=C3=A9se=20gomb?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lib/helpers/ui/common_bottom_sheets.dart | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/firka/lib/helpers/ui/common_bottom_sheets.dart b/firka/lib/helpers/ui/common_bottom_sheets.dart index 196a78f..fc3f408 100644 --- a/firka/lib/helpers/ui/common_bottom_sheets.dart +++ b/firka/lib/helpers/ui/common_bottom_sheets.dart @@ -3,6 +3,8 @@ import 'package:firka/helpers/api/model/grade.dart'; import 'package:firka/helpers/debug_helper.dart'; import 'package:firka/helpers/extensions.dart'; import 'package:firka/helpers/settings.dart'; +import 'package:firka/helpers/update_notifier.dart'; +import 'package:firka/ui/phone/pages/home/home_grades.dart'; import 'package:firka/ui/widget/firka_icon.dart'; import 'package:flutter/material.dart'; import 'package:flutter_svg/svg.dart'; @@ -26,11 +28,13 @@ Future showLessonBottomSheet( Color secondary, Color bgColor, Test? test, + ) async { final statsForNerdsEnabled = data.settings .group("settings") .subGroup("developer") .boolean("stats_for_nerds"); + final showTests = data.settings .group("settings") .subGroup("timetable_toast") @@ -245,7 +249,28 @@ Future showLessonBottomSheet( ), ), ), - ]) + ]), + SizedBox(height: 8), + SizedBox( + width: MediaQuery.of(context).size.width / 1.1, + child: GestureDetector( + child: FirkaCard( + left: [], + center: [ + Text( + "Tantárgy megtekintése", + style: appStyle.fonts.B_16R + .apply(color: appStyle.colors.textSecondary), + ) + ], + color: appStyle.colors.buttonSecondaryFill, + ), + onTap: () { + // TODO: Ide jön az a rész, hogy átkéne irányitania a tantárgy megtekintésére + + }, + ), + ), ], ), ),