added premium checks everywhere

This commit is contained in:
Kima
2024-03-03 20:44:11 +01:00
parent 1ec226511c
commit 9b232a4a97
6 changed files with 32 additions and 740 deletions

View File

@@ -804,6 +804,15 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
children: [
PanelButton(
onPressed: () {
if (!Provider.of<PremiumProvider>(context,
listen: false)
.hasScope(PremiumScopes.customFont)) {
PremiumLockedFeatureUpsell.show(
context: context,
feature: PremiumFeature.fontChange);
return;
}
SettingsHelper.fontFamily(context);
setState(() {});
},