rfplus things again
This commit is contained in:
parent
5849775660
commit
a51d65f7cc
@ -15,10 +15,10 @@ class ActiveSponsorCard extends StatelessWidget {
|
||||
scopes.contains(PremiumScopes.tierSponge)) {
|
||||
return PremiumFeatureLevel.sponge;
|
||||
}
|
||||
if (scopes.contains(PremiumScopes.tierInk)) {
|
||||
if (scopes.contains(PremiumScopes.tierGold)) {
|
||||
return PremiumFeatureLevel.ink;
|
||||
}
|
||||
if (scopes.contains(PremiumScopes.tierCap)) {
|
||||
if (scopes.contains(PremiumScopes.tierBasic)) {
|
||||
return PremiumFeatureLevel.cap;
|
||||
}
|
||||
return PremiumFeatureLevel.old;
|
||||
|
@ -40,6 +40,7 @@ import 'package:refilc_mobile_ui/screens/settings/theme_screen.dart';
|
||||
// import 'package:refilc_plus/providers/plus_provider.dart';
|
||||
// import 'package:refilc_plus/ui/mobile/plus/upsell.dart';
|
||||
import 'package:refilc_plus/ui/mobile/settings/settings_helper.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
class SettingsHelper {
|
||||
static const Map<String, String> langMap = {
|
||||
@ -459,6 +460,56 @@ class SettingsHelper {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
// v5 plus options
|
||||
static void plusOptions(BuildContext context) {
|
||||
showBottomSheetMenu(
|
||||
context,
|
||||
items: [
|
||||
BottomSheetMenuItem(
|
||||
onPressed: () {
|
||||
Clipboard.setData(ClipboardData(
|
||||
text: Provider.of<SettingsProvider>(context, listen: false)
|
||||
.plusSessionId,
|
||||
));
|
||||
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
title: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(SettingsLocalization('copy_plus_id').i18n),
|
||||
Icon(
|
||||
FeatherIcons.copy,
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
BottomSheetMenuItem(
|
||||
onPressed: () {
|
||||
launchUrl(
|
||||
Uri.parse(
|
||||
'https://billing.stripe.com/p/login/4gwbIRclL89D5PicMM'),
|
||||
mode: LaunchMode.inAppBrowserView,
|
||||
);
|
||||
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
title: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(SettingsLocalization('manage_subs').i18n),
|
||||
Icon(
|
||||
Icons.monetization_on_outlined,
|
||||
color: Theme.of(context).colorScheme.secondary,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Rounding modal
|
||||
|
@ -114,6 +114,8 @@ extension SettingsLocalization on String {
|
||||
"soon": "Soon",
|
||||
"new_colors": "New Colors",
|
||||
"exp_settings": "Export Settings",
|
||||
"manage_subs": "Manage Subscription",
|
||||
"copy_plus_id": "Copy reFilc+ ID",
|
||||
},
|
||||
"hu_hu": {
|
||||
"personal_details": "Személyes információk",
|
||||
@ -226,6 +228,8 @@ extension SettingsLocalization on String {
|
||||
"soon": "Hamarosan",
|
||||
"new_colors": "Új színek",
|
||||
"exp_settings": "Beállítások exportálása",
|
||||
"manage_subs": "Előfizetés kezelése",
|
||||
"copy_plus_id": "reFilc+ ID másolása",
|
||||
},
|
||||
"de_de": {
|
||||
"personal_details": "Persönliche Angaben",
|
||||
@ -338,6 +342,8 @@ extension SettingsLocalization on String {
|
||||
"soon": "Bald",
|
||||
"new_colors": "Neue Farben",
|
||||
"exp_settings": "Einstellungen exportieren",
|
||||
"manage_subs": "Abonnement verwalten",
|
||||
"copy_plus_id": "reFilc+ ID kopieren",
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit d1d5f0ee11670194982a8497654a3771b2e954ab
|
||||
Subproject commit 8ac99d0163878fcf173f62ddaa47dd5ac700418c
|
Loading…
x
Reference in New Issue
Block a user