temp removed app icon change button

This commit is contained in:
Kima 2023-12-26 00:07:42 +01:00
parent 1c11338d20
commit d14f525fb9

View File

@ -20,21 +20,25 @@ class PremiumCustomAppIconMenu extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return PanelButton( // return PanelButton(
onPressed: () { // onPressed: () {
if (!Provider.of<PremiumProvider>(context, listen: false) // if (!Provider.of<PremiumProvider>(context, listen: false)
.hasScope(PremiumScopes.changeAppIcon)) { // .hasScope(PremiumScopes.changeAppIcon)) {
PremiumLockedFeatureUpsell.show( // PremiumLockedFeatureUpsell.show(
context: context, feature: PremiumFeature.appiconchange); // context: context, feature: PremiumFeature.appiconchange);
return; // return;
} // }
Navigator.of(context, rootNavigator: true).push( // Navigator.of(context, rootNavigator: true).push(
CupertinoPageRoute(builder: (context) => const ModifyAppIcon()), // CupertinoPageRoute(builder: (context) => const ModifyAppIcon()),
); // );
}, // },
title: Text('custom_app_icon'.i18n), // title: Text('custom_app_icon'.i18n),
leading: const Icon(FeatherIcons.edit), // leading: const Icon(FeatherIcons.edit),
// );
return SizedBox(
width: 0,
height: 0,
); );
} }
} }