removed no import warning from grade exporting

This commit is contained in:
Kima 2024-06-17 17:58:17 +02:00
parent c01a0249b9
commit 3f9f65aff8

View File

@ -45,45 +45,43 @@ class MenuGradeExporting extends StatelessWidget {
// Navigator.of(context, rootNavigator: true).push(CupertinoPageRoute( // Navigator.of(context, rootNavigator: true).push(CupertinoPageRoute(
// builder: (context) => const CalendarSyncScreen())); // builder: (context) => const CalendarSyncScreen()));
showDialog( // showDialog(
context: context, // context: context,
builder: (context) => AlertDialog( // builder: (context) => AlertDialog(
title: const Text("Figyelem!"), // title: const Text("Figyelem!"),
content: const Text( // content: const Text(
"Az exportált jegyek jelenleg még nem megtekinthetők a reFilc-ben, csak te magad tudod átnézni őket JSON formátumban. A jövőben ez a funkció bővülni fog, és a jegyeket meg is tekintheted majd a reFilc felületén."), // "Az exportált jegyek jelenleg még nem megtekinthetők a reFilc-ben, csak te magad tudod átnézni őket JSON formátumban. A jövőben ez a funkció bővülni fog, és a jegyeket meg is tekintheted majd a reFilc felületén."),
actions: [ // actions: [
// // TextButton(
// // child: const Text(
// // "Vissza",
// // style: TextStyle(fontWeight: FontWeight.w500),
// // ),
// // onPressed: () {
// // Navigator.of(context).pop();
// // },
// // ),
// TextButton( // TextButton(
// child: const Text( // child: const Text(
// "Vissza", // "Tovább",
// style: TextStyle(fontWeight: FontWeight.w500), // style: TextStyle(fontWeight: FontWeight.w500),
// ), // ),
// onPressed: () { // onPressed: () {
// Navigator.of(context).pop(); // Navigator.of(context).pop();
// },
// ),
TextButton(
child: const Text(
"Tovább",
style: TextStyle(fontWeight: FontWeight.w500),
),
onPressed: () {
Navigator.of(context).pop();
if (!Provider.of<PlusProvider>(context, listen: false) if (!Provider.of<PlusProvider>(context, listen: false)
.hasScope(PremiumScopes.gradeExporting)) { .hasScope(PremiumScopes.gradeExporting)) {
return PlusLockedFeaturePopup.show( return PlusLockedFeaturePopup.show(
context: context, context: context, feature: PremiumFeature.gradeExporting);
feature: PremiumFeature.gradeExporting);
} }
Navigator.of(context, rootNavigator: true).push( Navigator.of(context, rootNavigator: true).push(CupertinoPageRoute(
CupertinoPageRoute(
builder: (context) => const GradeExportingScreen())); builder: (context) => const GradeExportingScreen()));
}, // },
), // ),
], // ],
), // ),
); // );
}, },
title: Text( title: Text(
"grade_exporting".i18n, "grade_exporting".i18n,
@ -244,11 +242,11 @@ class CalendarSyncScreenState extends State<GradeExportingScreen>
), ),
], ],
), ),
const SizedBox( // const SizedBox(
height: 10.0, // height: 10.0,
), // ),
const Text( // const Text(
"Az exportált jegyek jelenleg még nem megtekinthetők a reFilc-ben, csak te magad tudod átnézni őket JSON formátumban. A jövőben ez a funkció bővülni fog, és a jegyeket meg is tekintheted majd a reFilc felületén."), // "Az exportált jegyek jelenleg még nem megtekinthetők a reFilc-ben, csak te magad tudod átnézni őket JSON formátumban. A jövőben ez a funkció bővülni fog, és a jegyeket meg is tekintheted majd a reFilc felületén."),
], ],
), ),
], ],