remove sum hardcoded shit

This commit is contained in:
BalazsManus
2025-02-16 17:19:32 +01:00
parent ee0ba71c8f
commit 7eac57b94d
9 changed files with 7 additions and 24 deletions

View File

@@ -308,9 +308,7 @@ class NotesPageState extends State<NotesPage> with TickerProviderStateMixin {
if (!Provider.of<PlusProvider>(context, listen: false)
.hasScope(PremiumScopes.unlimitedSelfNotes) &&
noteTiles.length > 10) {
return PlusLockedFeaturePopup.show(
context: context,
feature: PremiumFeature.selfNotes);
return;
}
showCreationModal(context);

View File

@@ -219,8 +219,7 @@ class NotesScreenState extends State<NotesScreen> {
if (!Provider.of<PlusProvider>(context, listen: false)
.hasScope(PremiumScopes.unlimitedSelfNotes) &&
noteTiles.length > 10) {
return PlusLockedFeaturePopup.show(
context: context, feature: PremiumFeature.selfNotes);
return;
}
Navigator.of(context, rootNavigator: true).push(