added back premium check

This commit is contained in:
Kima
2024-06-16 21:33:33 +02:00
parent 604e9dcaad
commit 4277f0662a
2 changed files with 7 additions and 11 deletions

View File

@@ -728,12 +728,12 @@ class GradesPageState extends State<GradesPage> {
return; return;
} }
// if (!Provider.of<PlusProvider>(context, listen: false) if (!Provider.of<PlusProvider>(context, listen: false)
// .hasScope(PremiumScopes.gradeExporting)) { .hasScope(PremiumScopes.gradeExporting)) {
// PlusLockedFeaturePopup.show( PlusLockedFeaturePopup.show(
// context: context, feature: PremiumFeature.gradeExporting); context: context, feature: PremiumFeature.gradeExporting);
// return; return;
// } }
// show file picker // show file picker
FilePicker.platform.pickFiles( FilePicker.platform.pickFiles(
@@ -750,10 +750,6 @@ class GradesPageState extends State<GradesPage> {
generateTiles(); generateTiles();
setState(() {}); setState(() {});
print(content);
print(json);
print(jsonGrades.map((e) => e.json));
} }
}); });