From c73de2cc9b8b5b8c9b15aa35664409a1ec7de8eb Mon Sep 17 00:00:00 2001 From: atavism Date: Fri, 17 Nov 2023 04:39:20 -0800 Subject: [PATCH] Add play checkout page --- .../kotlin/io/lantern/model/SessionModel.kt | 1 + .../getlantern/lantern/util/PaymentsUtil.kt | 4 +- lib/common/session_model.dart | 6 +- lib/core/router/router.dart | 6 + lib/core/router/router.gr.dart | 2026 +++++++++-------- lib/plans/plan_details.dart | 23 +- 6 files changed, 1056 insertions(+), 1010 deletions(-) diff --git a/android/app/src/main/kotlin/io/lantern/model/SessionModel.kt b/android/app/src/main/kotlin/io/lantern/model/SessionModel.kt index 361665b8a..30fc504f6 100644 --- a/android/app/src/main/kotlin/io/lantern/model/SessionModel.kt +++ b/android/app/src/main/kotlin/io/lantern/model/SessionModel.kt @@ -153,6 +153,7 @@ class SessionModel( ) "submitGooglePlayPayment" -> paymentsUtil.submitGooglePlayPayment( + call.argument("email")!!, call.argument("planID")!!, result, ) diff --git a/android/app/src/main/kotlin/org/getlantern/lantern/util/PaymentsUtil.kt b/android/app/src/main/kotlin/org/getlantern/lantern/util/PaymentsUtil.kt index 7fbffd12f..bbf31de4a 100644 --- a/android/app/src/main/kotlin/org/getlantern/lantern/util/PaymentsUtil.kt +++ b/android/app/src/main/kotlin/org/getlantern/lantern/util/PaymentsUtil.kt @@ -130,7 +130,7 @@ class PaymentsUtil(private val activity: Activity) { } // Handles Google Play transactions - fun submitGooglePlayPayment(planID: String, methodCallResult: MethodChannel.Result) { + fun submitGooglePlayPayment(email: String, planID: String, methodCallResult: MethodChannel.Result) { val inAppBilling = LanternApp.getInAppBilling() if (inAppBilling == null) { @@ -179,7 +179,7 @@ class PaymentsUtil(private val activity: Activity) { sendPurchaseRequest( planID, - "", + email, tokens[0], PaymentProvider.GooglePlay, methodCallResult, diff --git a/lib/common/session_model.dart b/lib/common/session_model.dart index ae0ca74a1..0dbd57f4c 100644 --- a/lib/common/session_model.dart +++ b/lib/common/session_model.dart @@ -370,9 +370,13 @@ class SessionModel extends Model { }).then((value) => value as String); } - Future submitGooglePlay(String planID) async { + Future submitPlayPayment( + String planID, + String email, + ) async { return methodChannel .invokeMethod('submitGooglePlayPayment', { + 'email': email, 'planID': planID, }).then((value) => value as String); } diff --git a/lib/core/router/router.dart b/lib/core/router/router.dart index 9015c572a..85294d3d2 100644 --- a/lib/core/router/router.dart +++ b/lib/core/router/router.dart @@ -133,6 +133,12 @@ class AppRouter extends $AppRouter { transitionsBuilder: defaultTransition, durationInMilliseconds: defaultTransitionMillis, reverseDurationInMilliseconds: defaultTransitionMillis), + CustomRoute( + page: PlayCheckout.page, + path: '/playcheckout', + transitionsBuilder: defaultTransition, + durationInMilliseconds: defaultTransitionMillis, + reverseDurationInMilliseconds: defaultTransitionMillis), CustomRoute( page: Checkout.page, path: '/checkout', diff --git a/lib/core/router/router.gr.dart b/lib/core/router/router.gr.dart index 82434910a..a2251ff8f 100644 --- a/lib/core/router/router.gr.dart +++ b/lib/core/router/router.gr.dart @@ -8,543 +8,690 @@ // coverage:ignore-file // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:io' as _i43; - -import 'package:auto_route/auto_route.dart' as _i40; -import 'package:flutter/cupertino.dart' as _i45; -import 'package:lantern/account/account.dart' as _i23; -import 'package:lantern/account/account_management.dart' as _i17; -import 'package:lantern/account/blocked_users.dart' as _i29; -import 'package:lantern/account/chat_number_account.dart' as _i27; -import 'package:lantern/account/device_linking/approve_device.dart' as _i19; +import 'dart:io' as _i45; + +import 'package:auto_route/auto_route.dart' as _i41; +import 'package:flutter/cupertino.dart' as _i46; +import 'package:lantern/account/account.dart' as _i2; +import 'package:lantern/account/account_management.dart' as _i1; +import 'package:lantern/account/blocked_users.dart' as _i8; +import 'package:lantern/account/chat_number_account.dart' as _i9; +import 'package:lantern/account/device_linking/approve_device.dart' as _i4; import 'package:lantern/account/device_linking/authorize_device_for_pro.dart' - as _i22; + as _i5; import 'package:lantern/account/device_linking/authorize_device_via_email.dart' - as _i21; + as _i6; import 'package:lantern/account/device_linking/authorize_device_via_email_pin.dart' - as _i18; -import 'package:lantern/account/device_linking/link_device.dart' as _i20; -import 'package:lantern/account/invite_friends.dart' as _i26; -import 'package:lantern/account/language.dart' as _i30; -import 'package:lantern/account/lantern_desktop.dart' as _i25; -import 'package:lantern/account/recovery_key.dart' as _i16; -import 'package:lantern/account/report_issue.dart' as _i15; -import 'package:lantern/account/settings.dart' as _i31; -import 'package:lantern/account/split_tunneling.dart' as _i28; -import 'package:lantern/account/support.dart' as _i24; -import 'package:lantern/common/common.dart' as _i41; -import 'package:lantern/common/ui/full_screen_dialog.dart' as _i6; -import 'package:lantern/home.dart' as _i1; -import 'package:lantern/messaging/contacts/add_contact_number.dart' as _i32; -import 'package:lantern/messaging/contacts/contact_info.dart' as _i33; -import 'package:lantern/messaging/contacts/new_chat.dart' as _i34; -import 'package:lantern/messaging/conversation/conversation.dart' as _i39; -import 'package:lantern/messaging/introductions/introduce.dart' as _i36; -import 'package:lantern/messaging/introductions/introductions.dart' as _i35; -import 'package:lantern/messaging/messaging.dart' as _i44; + as _i7; +import 'package:lantern/account/device_linking/link_device.dart' as _i22; +import 'package:lantern/account/invite_friends.dart' as _i19; +import 'package:lantern/account/language.dart' as _i20; +import 'package:lantern/account/lantern_desktop.dart' as _i21; +import 'package:lantern/account/recovery_key.dart' as _i26; +import 'package:lantern/account/report_issue.dart' as _i35; +import 'package:lantern/account/settings.dart' as _i37; +import 'package:lantern/account/split_tunneling.dart' as _i38; +import 'package:lantern/account/support.dart' as _i40; +import 'package:lantern/common/common.dart' as _i43; +import 'package:lantern/common/ui/full_screen_dialog.dart' as _i15; +import 'package:lantern/home.dart' as _i16; +import 'package:lantern/messaging/contacts/add_contact_number.dart' as _i3; +import 'package:lantern/messaging/contacts/contact_info.dart' as _i13; +import 'package:lantern/messaging/contacts/new_chat.dart' as _i23; +import 'package:lantern/messaging/conversation/conversation.dart' as _i14; +import 'package:lantern/messaging/introductions/introduce.dart' as _i17; +import 'package:lantern/messaging/introductions/introductions.dart' as _i18; +import 'package:lantern/messaging/messaging.dart' as _i42; import 'package:lantern/messaging/onboarding/chat_number_messaging.dart' - as _i38; -import 'package:lantern/messaging/onboarding/chat_number_recovery.dart' as _i37; -import 'package:lantern/plans/checkout.dart' as _i5; -import 'package:lantern/plans/plans.dart' as _i3; -import 'package:lantern/plans/reseller_checkout.dart' as _i2; -import 'package:lantern/plans/stripe_checkout.dart' as _i4; -import 'package:lantern/replica/common.dart' as _i42; -import 'package:lantern/replica/link_handler.dart' as _i11; -import 'package:lantern/replica/ui/viewers/audio.dart' as _i7; -import 'package:lantern/replica/ui/viewers/image.dart' as _i8; -import 'package:lantern/replica/ui/viewers/misc.dart' as _i10; -import 'package:lantern/replica/ui/viewers/video.dart' as _i9; -import 'package:lantern/replica/upload/description.dart' as _i13; -import 'package:lantern/replica/upload/review.dart' as _i12; -import 'package:lantern/replica/upload/title.dart' as _i14; - -abstract class $AppRouter extends _i40.RootStackRouter { + as _i10; +import 'package:lantern/messaging/onboarding/chat_number_recovery.dart' as _i11; +import 'package:lantern/plans/checkout.dart' as _i12; +import 'package:lantern/plans/plans.dart' as _i24; +import 'package:lantern/plans/play_checkout.dart' as _i25; +import 'package:lantern/plans/reseller_checkout.dart' as _i36; +import 'package:lantern/plans/stripe_checkout.dart' as _i39; +import 'package:lantern/replica/common.dart' as _i44; +import 'package:lantern/replica/link_handler.dart' as _i29; +import 'package:lantern/replica/ui/viewers/audio.dart' as _i27; +import 'package:lantern/replica/ui/viewers/image.dart' as _i28; +import 'package:lantern/replica/ui/viewers/misc.dart' as _i30; +import 'package:lantern/replica/ui/viewers/video.dart' as _i34; +import 'package:lantern/replica/upload/description.dart' as _i31; +import 'package:lantern/replica/upload/review.dart' as _i32; +import 'package:lantern/replica/upload/title.dart' as _i33; + +abstract class $AppRouter extends _i41.RootStackRouter { $AppRouter({super.navigatorKey}); @override - final Map pagesMap = { - Home.name: (routeData) { - final args = routeData.argsAs(orElse: () => const HomeArgs()); - return _i40.AutoRoutePage( + final Map pagesMap = { + AccountManagement.name: (routeData) { + final args = routeData.argsAs(); + return _i41.AutoRoutePage( routeData: routeData, - child: _i1.HomePage(key: args.key), + child: _i1.AccountManagement( + key: args.key, + isPro: args.isPro, + ), ); }, - ResellerCodeCheckout.name: (routeData) { - final args = routeData.argsAs(); - return _i40.AutoRoutePage( + Account.name: (routeData) { + final args = + routeData.argsAs(orElse: () => const AccountArgs()); + return _i41.AutoRoutePage( routeData: routeData, - child: _i2.ResellerCodeCheckout( - isPro: args.isPro, - key: args.key, - ), + child: _i2.AccountMenu(key: args.key), ); }, - PlansPage.name: (routeData) { - return _i40.AutoRoutePage( + AddViaChatNumber.name: (routeData) { + return _i41.AutoRoutePage( routeData: routeData, - child: _i3.PlansPage(), + child: _i3.AddViaChatNumber(), ); }, - StripeCheckout.name: (routeData) { - final args = routeData.argsAs(); - return _i40.AutoRoutePage( + ApproveDevice.name: (routeData) { + final args = routeData.argsAs( + orElse: () => const ApproveDeviceArgs()); + return _i41.AutoRoutePage( routeData: routeData, - child: _i4.StripeCheckout( - plan: args.plan, - email: args.email, - refCode: args.refCode, - isPro: args.isPro, - key: args.key, - ), + child: _i4.ApproveDevice(key: args.key), ); }, - Checkout.name: (routeData) { - final args = routeData.argsAs(); - return _i40.AutoRoutePage( + AuthorizePro.name: (routeData) { + final args = routeData.argsAs( + orElse: () => const AuthorizeProArgs()); + return _i41.AutoRoutePage( routeData: routeData, - child: _i5.Checkout( - plan: args.plan, - isPro: args.isPro, - key: args.key, - ), + child: _i5.AuthorizeDeviceForPro(key: args.key), ); }, - FullScreenDialogPage.name: (routeData) { - final args = routeData.argsAs(); - return _i40.AutoRoutePage( + AuthorizeDeviceEmail.name: (routeData) { + final args = routeData.argsAs( + orElse: () => const AuthorizeDeviceEmailArgs()); + return _i41.AutoRoutePage( routeData: routeData, - child: _i6.FullScreenDialog( - widget: args.widget, - key: args.key, - ), + child: _i6.AuthorizeDeviceViaEmail(key: args.key), ); }, - ReplicaAudioViewer.name: (routeData) { - final args = routeData.argsAs(); - return _i40.AutoRoutePage( + AuthorizeDeviceEmailPin.name: (routeData) { + final args = routeData.argsAs( + orElse: () => const AuthorizeDeviceEmailPinArgs()); + return _i41.AutoRoutePage( routeData: routeData, - child: _i7.ReplicaAudioViewer( - replicaApi: args.replicaApi, - item: args.item, - category: args.category, - ), + child: _i7.AuthorizeDeviceViaEmailPin(key: args.key), ); }, - ReplicaImageViewer.name: (routeData) { - final args = routeData.argsAs(); - return _i40.AutoRoutePage( + BlockedUsers.name: (routeData) { + final args = routeData.argsAs( + orElse: () => const BlockedUsersArgs()); + return _i41.AutoRoutePage( routeData: routeData, - child: _i8.ReplicaImageViewer( - replicaApi: args.replicaApi, - item: args.item, - category: args.category, - ), + child: _i8.BlockedUsers(key: args.key), ); }, - ReplicaVideoViewer.name: (routeData) { - final args = routeData.argsAs(); - return _i40.AutoRoutePage( + ChatNumberAccount.name: (routeData) { + return _i41.AutoRoutePage( routeData: routeData, - child: _i9.ReplicaVideoViewer( - replicaApi: args.replicaApi, - item: args.item, - category: args.category, - ), + child: _i9.ChatNumberAccount(), ); }, - ReplicaMiscViewer.name: (routeData) { - final args = routeData.argsAs(); - return _i40.AutoRoutePage( + ChatNumberMessaging.name: (routeData) { + return _i41.AutoRoutePage( routeData: routeData, - child: _i10.ReplicaMiscViewer( - replicaApi: args.replicaApi, - item: args.item, - category: args.category, - ), + child: _i10.ChatNumberMessaging(), ); }, - ReplicaLinkHandler.name: (routeData) { - final args = routeData.argsAs(); - return _i40.AutoRoutePage( + ChatNumberRecovery.name: (routeData) { + return _i41.AutoRoutePage( routeData: routeData, - child: _i11.ReplicaLinkHandler( - key: args.key, - replicaApi: args.replicaApi, - replicaLink: args.replicaLink, - ), + child: _i11.ChatNumberRecovery(), ); }, - ReplicaUploadReview.name: (routeData) { - final args = routeData.argsAs(); - return _i40.AutoRoutePage( + Checkout.name: (routeData) { + final args = routeData.argsAs(); + return _i41.AutoRoutePage( routeData: routeData, - child: _i12.ReplicaUploadReview( + child: _i12.Checkout( + plan: args.plan, + isPro: args.isPro, key: args.key, - fileToUpload: args.fileToUpload, - fileTitle: args.fileTitle, - fileDescription: args.fileDescription, ), ); }, - ReplicaUploadDescription.name: (routeData) { - final args = routeData.argsAs(); - return _i40.AutoRoutePage( + ContactInfo.name: (routeData) { + final args = routeData.argsAs(); + return _i41.AutoRoutePage( routeData: routeData, - child: _i13.ReplicaUploadDescription( - key: args.key, - fileToUpload: args.fileToUpload, - fileTitle: args.fileTitle, - fileDescription: args.fileDescription, - ), + child: _i13.ContactInfo(contact: args.contact), ); }, - ReplicaUploadTitle.name: (routeData) { - final args = routeData.argsAs(); - return _i40.AutoRoutePage( + Conversation.name: (routeData) { + final args = routeData.argsAs(); + return _i41.AutoRoutePage( routeData: routeData, - child: _i14.ReplicaUploadTitle( - key: args.key, - fileToUpload: args.fileToUpload, - fileTitle: args.fileTitle, - fileDescription: args.fileDescription, + child: _i14.Conversation( + contactId: args.contactId, + initialScrollIndex: args.initialScrollIndex, + showContactEditingDialog: args.showContactEditingDialog, ), ); }, - ReportIssue.name: (routeData) { - final args = routeData.argsAs( - orElse: () => const ReportIssueArgs()); - return _i40.AutoRoutePage( + FullScreenDialogPage.name: (routeData) { + final args = routeData.argsAs(); + return _i41.AutoRoutePage( routeData: routeData, - child: _i15.ReportIssue(key: args.key), + child: _i15.FullScreenDialog( + widget: args.widget, + key: args.key, + ), ); }, - RecoveryKey.name: (routeData) { - final args = routeData.argsAs( - orElse: () => const RecoveryKeyArgs()); - return _i40.AutoRoutePage( + Home.name: (routeData) { + return _i41.AutoRoutePage( routeData: routeData, - child: _i16.RecoveryKey(key: args.key), + child: const _i16.HomePage(), ); }, - AccountManagement.name: (routeData) { - final args = routeData.argsAs(); - return _i40.AutoRoutePage( + Introduce.name: (routeData) { + final args = routeData.argsAs(); + return _i41.AutoRoutePage( routeData: routeData, - child: _i17.AccountManagement( - key: args.key, - isPro: args.isPro, + child: _i17.Introduce( + singleIntro: args.singleIntro, + contactToIntro: args.contactToIntro, ), ); }, - AuthorizeDeviceEmailPin.name: (routeData) { - final args = routeData.argsAs( - orElse: () => const AuthorizeDeviceEmailPinArgs()); - return _i40.AutoRoutePage( + Introductions.name: (routeData) { + return _i41.AutoRoutePage( routeData: routeData, - child: _i18.AuthorizeDeviceViaEmailPin(key: args.key), + child: _i18.Introductions(), ); }, - ApproveDevice.name: (routeData) { - final args = routeData.argsAs( - orElse: () => const ApproveDeviceArgs()); - return _i40.AutoRoutePage( + InviteFriends.name: (routeData) { + return _i41.AutoRoutePage( routeData: routeData, - child: _i19.ApproveDevice(key: args.key), + child: _i19.InviteFriends(), ); }, - LinkDevice.name: (routeData) { - final args = routeData.argsAs( - orElse: () => const LinkDeviceArgs()); - return _i40.AutoRoutePage( + Language.name: (routeData) { + final args = + routeData.argsAs(orElse: () => const LanguageArgs()); + return _i41.AutoRoutePage( routeData: routeData, - child: _i20.LinkDevice(key: args.key), + child: _i20.Language(key: args.key), ); }, - AuthorizeDeviceEmail.name: (routeData) { - final args = routeData.argsAs( - orElse: () => const AuthorizeDeviceEmailArgs()); - return _i40.AutoRoutePage( + LanternDesktop.name: (routeData) { + return _i41.AutoRoutePage( routeData: routeData, - child: _i21.AuthorizeDeviceViaEmail(key: args.key), + child: const _i21.LanternDesktop(), ); }, - AuthorizePro.name: (routeData) { - final args = routeData.argsAs( - orElse: () => const AuthorizeProArgs()); - return _i40.AutoRoutePage( + LinkDevice.name: (routeData) { + final args = routeData.argsAs( + orElse: () => const LinkDeviceArgs()); + return _i41.AutoRoutePage( routeData: routeData, - child: _i22.AuthorizeDeviceForPro(key: args.key), + child: _i22.LinkDevice(key: args.key), ); }, - Account.name: (routeData) { - final args = - routeData.argsAs(orElse: () => const AccountArgs()); - return _i40.AutoRoutePage( + NewChat.name: (routeData) { + return _i41.AutoRoutePage( routeData: routeData, - child: _i23.AccountMenu(key: args.key), + child: _i23.NewChat(), ); }, - Support.name: (routeData) { - return _i40.AutoRoutePage( + PlansPage.name: (routeData) { + return _i41.AutoRoutePage( routeData: routeData, - child: const _i24.Support(), + child: _i24.PlansPage(), ); }, - LanternDesktop.name: (routeData) { - return _i40.AutoRoutePage( + PlayCheckout.name: (routeData) { + final args = routeData.argsAs(); + return _i41.AutoRoutePage( routeData: routeData, - child: const _i25.LanternDesktop(), + child: _i25.PlayCheckout( + plan: args.plan, + isPro: args.isPro, + key: args.key, + ), ); }, - InviteFriends.name: (routeData) { - return _i40.AutoRoutePage( + RecoveryKey.name: (routeData) { + final args = routeData.argsAs( + orElse: () => const RecoveryKeyArgs()); + return _i41.AutoRoutePage( routeData: routeData, - child: _i26.InviteFriends(), + child: _i26.RecoveryKey(key: args.key), ); }, - ChatNumberAccount.name: (routeData) { - return _i40.AutoRoutePage( + ReplicaAudioViewer.name: (routeData) { + final args = routeData.argsAs(); + return _i41.AutoRoutePage( routeData: routeData, - child: _i27.ChatNumberAccount(), + child: _i27.ReplicaAudioViewer( + replicaApi: args.replicaApi, + item: args.item, + category: args.category, + ), ); }, - SplitTunneling.name: (routeData) { - final args = routeData.argsAs( - orElse: () => const SplitTunnelingArgs()); - return _i40.AutoRoutePage( + ReplicaImageViewer.name: (routeData) { + final args = routeData.argsAs(); + return _i41.AutoRoutePage( routeData: routeData, - child: _i28.SplitTunneling(key: args.key), + child: _i28.ReplicaImageViewer( + replicaApi: args.replicaApi, + item: args.item, + category: args.category, + ), ); }, - BlockedUsers.name: (routeData) { - final args = routeData.argsAs( - orElse: () => const BlockedUsersArgs()); - return _i40.AutoRoutePage( + ReplicaLinkHandler.name: (routeData) { + final args = routeData.argsAs(); + return _i41.AutoRoutePage( routeData: routeData, - child: _i29.BlockedUsers(key: args.key), + child: _i29.ReplicaLinkHandler( + key: args.key, + replicaApi: args.replicaApi, + replicaLink: args.replicaLink, + ), ); }, - Language.name: (routeData) { - final args = - routeData.argsAs(orElse: () => const LanguageArgs()); - return _i40.AutoRoutePage( + ReplicaMiscViewer.name: (routeData) { + final args = routeData.argsAs(); + return _i41.AutoRoutePage( routeData: routeData, - child: _i30.Language(key: args.key), + child: _i30.ReplicaMiscViewer( + replicaApi: args.replicaApi, + item: args.item, + category: args.category, + ), ); }, - Settings.name: (routeData) { - final args = - routeData.argsAs(orElse: () => const SettingsArgs()); - return _i40.AutoRoutePage( + ReplicaUploadDescription.name: (routeData) { + final args = routeData.argsAs(); + return _i41.AutoRoutePage( routeData: routeData, - child: _i31.Settings(key: args.key), + child: _i31.ReplicaUploadDescription( + key: args.key, + fileToUpload: args.fileToUpload, + fileTitle: args.fileTitle, + fileDescription: args.fileDescription, + ), ); }, - AddViaChatNumber.name: (routeData) { - return _i40.AutoRoutePage( + ReplicaUploadReview.name: (routeData) { + final args = routeData.argsAs(); + return _i41.AutoRoutePage( routeData: routeData, - child: _i32.AddViaChatNumber(), + child: _i32.ReplicaUploadReview( + key: args.key, + fileToUpload: args.fileToUpload, + fileTitle: args.fileTitle, + fileDescription: args.fileDescription, + ), ); }, - ContactInfo.name: (routeData) { - final args = routeData.argsAs(); - return _i40.AutoRoutePage( + ReplicaUploadTitle.name: (routeData) { + final args = routeData.argsAs(); + return _i41.AutoRoutePage( routeData: routeData, - child: _i33.ContactInfo(contact: args.contact), + child: _i33.ReplicaUploadTitle( + key: args.key, + fileToUpload: args.fileToUpload, + fileTitle: args.fileTitle, + fileDescription: args.fileDescription, + ), ); }, - NewChat.name: (routeData) { - return _i40.AutoRoutePage( + ReplicaVideoViewer.name: (routeData) { + final args = routeData.argsAs(); + return _i41.AutoRoutePage( routeData: routeData, - child: _i34.NewChat(), + child: _i34.ReplicaVideoViewer( + replicaApi: args.replicaApi, + item: args.item, + category: args.category, + ), ); }, - Introductions.name: (routeData) { - return _i40.AutoRoutePage( + ReportIssue.name: (routeData) { + final args = routeData.argsAs( + orElse: () => const ReportIssueArgs()); + return _i41.AutoRoutePage( routeData: routeData, - child: _i35.Introductions(), + child: _i35.ReportIssue(key: args.key), ); }, - Introduce.name: (routeData) { - final args = routeData.argsAs(); - return _i40.AutoRoutePage( + ResellerCodeCheckout.name: (routeData) { + final args = routeData.argsAs(); + return _i41.AutoRoutePage( routeData: routeData, - child: _i36.Introduce( - singleIntro: args.singleIntro, - contactToIntro: args.contactToIntro, + child: _i36.ResellerCodeCheckout( + isPro: args.isPro, + key: args.key, ), ); }, - ChatNumberRecovery.name: (routeData) { - return _i40.AutoRoutePage( + Settings.name: (routeData) { + final args = + routeData.argsAs(orElse: () => const SettingsArgs()); + return _i41.AutoRoutePage( routeData: routeData, - child: _i37.ChatNumberRecovery(), + child: _i37.Settings(key: args.key), ); }, - ChatNumberMessaging.name: (routeData) { - return _i40.AutoRoutePage( + SplitTunneling.name: (routeData) { + final args = routeData.argsAs( + orElse: () => const SplitTunnelingArgs()); + return _i41.AutoRoutePage( routeData: routeData, - child: _i38.ChatNumberMessaging(), + child: _i38.SplitTunneling(key: args.key), ); }, - Conversation.name: (routeData) { - final args = routeData.argsAs(); - return _i40.AutoRoutePage( + StripeCheckout.name: (routeData) { + final args = routeData.argsAs(); + return _i41.AutoRoutePage( routeData: routeData, - child: _i39.Conversation( - contactId: args.contactId, - initialScrollIndex: args.initialScrollIndex, - showContactEditingDialog: args.showContactEditingDialog, + child: _i39.StripeCheckout( + plan: args.plan, + email: args.email, + refCode: args.refCode, + isPro: args.isPro, + key: args.key, ), ); }, + Support.name: (routeData) { + return _i41.AutoRoutePage( + routeData: routeData, + child: const _i40.Support(), + ); + }, }; } /// generated route for -/// [_i1.HomePage] -class Home extends _i40.PageRouteInfo { - Home({ - _i41.Key? key, - List<_i40.PageRouteInfo>? children, +/// [_i1.AccountManagement] +class AccountManagement extends _i41.PageRouteInfo { + AccountManagement({ + _i42.Key? key, + required bool isPro, + List<_i41.PageRouteInfo>? children, }) : super( - Home.name, - args: HomeArgs(key: key), + AccountManagement.name, + args: AccountManagementArgs( + key: key, + isPro: isPro, + ), initialChildren: children, ); - static const String name = 'Home'; + static const String name = 'AccountManagement'; - static const _i40.PageInfo page = _i40.PageInfo(name); + static const _i41.PageInfo page = + _i41.PageInfo(name); } -class HomeArgs { - const HomeArgs({this.key}); +class AccountManagementArgs { + const AccountManagementArgs({ + this.key, + required this.isPro, + }); - final _i41.Key? key; + final _i42.Key? key; + + final bool isPro; @override String toString() { - return 'HomeArgs{key: $key}'; + return 'AccountManagementArgs{key: $key, isPro: $isPro}'; } } /// generated route for -/// [_i2.ResellerCodeCheckout] -class ResellerCodeCheckout - extends _i40.PageRouteInfo { - ResellerCodeCheckout({ - required bool isPro, - _i41.Key? key, - List<_i40.PageRouteInfo>? children, +/// [_i2.AccountMenu] +class Account extends _i41.PageRouteInfo { + Account({ + _i43.Key? key, + List<_i41.PageRouteInfo>? children, }) : super( - ResellerCodeCheckout.name, - args: ResellerCodeCheckoutArgs( - isPro: isPro, - key: key, - ), + Account.name, + args: AccountArgs(key: key), initialChildren: children, ); - static const String name = 'ResellerCodeCheckout'; + static const String name = 'Account'; - static const _i40.PageInfo page = - _i40.PageInfo(name); + static const _i41.PageInfo page = + _i41.PageInfo(name); } -class ResellerCodeCheckoutArgs { - const ResellerCodeCheckoutArgs({ - required this.isPro, - this.key, - }); +class AccountArgs { + const AccountArgs({this.key}); + + final _i43.Key? key; + + @override + String toString() { + return 'AccountArgs{key: $key}'; + } +} + +/// generated route for +/// [_i3.AddViaChatNumber] +class AddViaChatNumber extends _i41.PageRouteInfo { + const AddViaChatNumber({List<_i41.PageRouteInfo>? children}) + : super( + AddViaChatNumber.name, + initialChildren: children, + ); + + static const String name = 'AddViaChatNumber'; + + static const _i41.PageInfo page = _i41.PageInfo(name); +} + +/// generated route for +/// [_i4.ApproveDevice] +class ApproveDevice extends _i41.PageRouteInfo { + ApproveDevice({ + _i43.Key? key, + List<_i41.PageRouteInfo>? children, + }) : super( + ApproveDevice.name, + args: ApproveDeviceArgs(key: key), + initialChildren: children, + ); + + static const String name = 'ApproveDevice'; + + static const _i41.PageInfo page = + _i41.PageInfo(name); +} + +class ApproveDeviceArgs { + const ApproveDeviceArgs({this.key}); + + final _i43.Key? key; + + @override + String toString() { + return 'ApproveDeviceArgs{key: $key}'; + } +} + +/// generated route for +/// [_i5.AuthorizeDeviceForPro] +class AuthorizePro extends _i41.PageRouteInfo { + AuthorizePro({ + _i43.Key? key, + List<_i41.PageRouteInfo>? children, + }) : super( + AuthorizePro.name, + args: AuthorizeProArgs(key: key), + initialChildren: children, + ); + + static const String name = 'AuthorizePro'; + + static const _i41.PageInfo page = + _i41.PageInfo(name); +} + +class AuthorizeProArgs { + const AuthorizeProArgs({this.key}); + + final _i43.Key? key; + + @override + String toString() { + return 'AuthorizeProArgs{key: $key}'; + } +} + +/// generated route for +/// [_i6.AuthorizeDeviceViaEmail] +class AuthorizeDeviceEmail + extends _i41.PageRouteInfo { + AuthorizeDeviceEmail({ + _i43.Key? key, + List<_i41.PageRouteInfo>? children, + }) : super( + AuthorizeDeviceEmail.name, + args: AuthorizeDeviceEmailArgs(key: key), + initialChildren: children, + ); + + static const String name = 'AuthorizeDeviceEmail'; + + static const _i41.PageInfo page = + _i41.PageInfo(name); +} + +class AuthorizeDeviceEmailArgs { + const AuthorizeDeviceEmailArgs({this.key}); + + final _i43.Key? key; + + @override + String toString() { + return 'AuthorizeDeviceEmailArgs{key: $key}'; + } +} + +/// generated route for +/// [_i7.AuthorizeDeviceViaEmailPin] +class AuthorizeDeviceEmailPin + extends _i41.PageRouteInfo { + AuthorizeDeviceEmailPin({ + _i43.Key? key, + List<_i41.PageRouteInfo>? children, + }) : super( + AuthorizeDeviceEmailPin.name, + args: AuthorizeDeviceEmailPinArgs(key: key), + initialChildren: children, + ); + + static const String name = 'AuthorizeDeviceEmailPin'; + + static const _i41.PageInfo page = + _i41.PageInfo(name); +} + +class AuthorizeDeviceEmailPinArgs { + const AuthorizeDeviceEmailPinArgs({this.key}); + + final _i43.Key? key; + + @override + String toString() { + return 'AuthorizeDeviceEmailPinArgs{key: $key}'; + } +} + +/// generated route for +/// [_i8.BlockedUsers] +class BlockedUsers extends _i41.PageRouteInfo { + BlockedUsers({ + _i42.Key? key, + List<_i41.PageRouteInfo>? children, + }) : super( + BlockedUsers.name, + args: BlockedUsersArgs(key: key), + initialChildren: children, + ); + + static const String name = 'BlockedUsers'; + + static const _i41.PageInfo page = + _i41.PageInfo(name); +} - final bool isPro; +class BlockedUsersArgs { + const BlockedUsersArgs({this.key}); - final _i41.Key? key; + final _i42.Key? key; @override String toString() { - return 'ResellerCodeCheckoutArgs{isPro: $isPro, key: $key}'; + return 'BlockedUsersArgs{key: $key}'; } } /// generated route for -/// [_i3.PlansPage] -class PlansPage extends _i40.PageRouteInfo { - const PlansPage({List<_i40.PageRouteInfo>? children}) +/// [_i9.ChatNumberAccount] +class ChatNumberAccount extends _i41.PageRouteInfo { + const ChatNumberAccount({List<_i41.PageRouteInfo>? children}) : super( - PlansPage.name, + ChatNumberAccount.name, initialChildren: children, ); - static const String name = 'PlansPage'; + static const String name = 'ChatNumberAccount'; - static const _i40.PageInfo page = _i40.PageInfo(name); + static const _i41.PageInfo page = _i41.PageInfo(name); } /// generated route for -/// [_i4.StripeCheckout] -class StripeCheckout extends _i40.PageRouteInfo { - StripeCheckout({ - required _i41.Plan plan, - required String email, - String? refCode, - required bool isPro, - _i41.Key? key, - List<_i40.PageRouteInfo>? children, - }) : super( - StripeCheckout.name, - args: StripeCheckoutArgs( - plan: plan, - email: email, - refCode: refCode, - isPro: isPro, - key: key, - ), +/// [_i10.ChatNumberMessaging] +class ChatNumberMessaging extends _i41.PageRouteInfo { + const ChatNumberMessaging({List<_i41.PageRouteInfo>? children}) + : super( + ChatNumberMessaging.name, initialChildren: children, ); - static const String name = 'StripeCheckout'; + static const String name = 'ChatNumberMessaging'; - static const _i40.PageInfo page = - _i40.PageInfo(name); + static const _i41.PageInfo page = _i41.PageInfo(name); } -class StripeCheckoutArgs { - const StripeCheckoutArgs({ - required this.plan, - required this.email, - this.refCode, - required this.isPro, - this.key, - }); - - final _i41.Plan plan; - - final String email; - - final String? refCode; - - final bool isPro; +/// generated route for +/// [_i11.ChatNumberRecovery] +class ChatNumberRecovery extends _i41.PageRouteInfo { + const ChatNumberRecovery({List<_i41.PageRouteInfo>? children}) + : super( + ChatNumberRecovery.name, + initialChildren: children, + ); - final _i41.Key? key; + static const String name = 'ChatNumberRecovery'; - @override - String toString() { - return 'StripeCheckoutArgs{plan: $plan, email: $email, refCode: $refCode, isPro: $isPro, key: $key}'; - } + static const _i41.PageInfo page = _i41.PageInfo(name); } /// generated route for -/// [_i5.Checkout] -class Checkout extends _i40.PageRouteInfo { +/// [_i12.Checkout] +class Checkout extends _i41.PageRouteInfo { Checkout({ - required _i41.Plan plan, + required _i43.Plan plan, required bool isPro, - _i41.Key? key, - List<_i40.PageRouteInfo>? children, + _i43.Key? key, + List<_i41.PageRouteInfo>? children, }) : super( Checkout.name, args: CheckoutArgs( @@ -557,8 +704,8 @@ class Checkout extends _i40.PageRouteInfo { static const String name = 'Checkout'; - static const _i40.PageInfo page = - _i40.PageInfo(name); + static const _i41.PageInfo page = + _i41.PageInfo(name); } class CheckoutArgs { @@ -568,11 +715,11 @@ class CheckoutArgs { this.key, }); - final _i41.Plan plan; + final _i43.Plan plan; final bool isPro; - final _i41.Key? key; + final _i43.Key? key; @override String toString() { @@ -581,439 +728,345 @@ class CheckoutArgs { } /// generated route for -/// [_i6.FullScreenDialog] -class FullScreenDialogPage - extends _i40.PageRouteInfo { - FullScreenDialogPage({ - required _i41.Widget widget, - _i41.Key? key, - List<_i40.PageRouteInfo>? children, +/// [_i13.ContactInfo] +class ContactInfo extends _i41.PageRouteInfo { + ContactInfo({ + required _i42.Contact contact, + List<_i41.PageRouteInfo>? children, }) : super( - FullScreenDialogPage.name, - args: FullScreenDialogPageArgs( - widget: widget, - key: key, - ), + ContactInfo.name, + args: ContactInfoArgs(contact: contact), initialChildren: children, ); - static const String name = 'FullScreenDialogPage'; + static const String name = 'ContactInfo'; - static const _i40.PageInfo page = - _i40.PageInfo(name); + static const _i41.PageInfo page = + _i41.PageInfo(name); } -class FullScreenDialogPageArgs { - const FullScreenDialogPageArgs({ - required this.widget, - this.key, - }); - - final _i41.Widget widget; +class ContactInfoArgs { + const ContactInfoArgs({required this.contact}); - final _i41.Key? key; + final _i42.Contact contact; @override String toString() { - return 'FullScreenDialogPageArgs{widget: $widget, key: $key}'; + return 'ContactInfoArgs{contact: $contact}'; } } /// generated route for -/// [_i7.ReplicaAudioViewer] -class ReplicaAudioViewer extends _i40.PageRouteInfo { - ReplicaAudioViewer({ - required _i42.ReplicaApi replicaApi, - required _i42.ReplicaSearchItem item, - required _i42.SearchCategory category, - List<_i40.PageRouteInfo>? children, +/// [_i14.Conversation] +class Conversation extends _i41.PageRouteInfo { + Conversation({ + required _i42.ContactId contactId, + int? initialScrollIndex, + bool showContactEditingDialog = false, + List<_i41.PageRouteInfo>? children, }) : super( - ReplicaAudioViewer.name, - args: ReplicaAudioViewerArgs( - replicaApi: replicaApi, - item: item, - category: category, + Conversation.name, + args: ConversationArgs( + contactId: contactId, + initialScrollIndex: initialScrollIndex, + showContactEditingDialog: showContactEditingDialog, ), initialChildren: children, ); - static const String name = 'ReplicaAudioViewer'; + static const String name = 'Conversation'; - static const _i40.PageInfo page = - _i40.PageInfo(name); + static const _i41.PageInfo page = + _i41.PageInfo(name); } -class ReplicaAudioViewerArgs { - const ReplicaAudioViewerArgs({ - required this.replicaApi, - required this.item, - required this.category, +class ConversationArgs { + const ConversationArgs({ + required this.contactId, + this.initialScrollIndex, + this.showContactEditingDialog = false, }); - final _i42.ReplicaApi replicaApi; + final _i42.ContactId contactId; - final _i42.ReplicaSearchItem item; + final int? initialScrollIndex; - final _i42.SearchCategory category; + final bool showContactEditingDialog; @override String toString() { - return 'ReplicaAudioViewerArgs{replicaApi: $replicaApi, item: $item, category: $category}'; + return 'ConversationArgs{contactId: $contactId, initialScrollIndex: $initialScrollIndex, showContactEditingDialog: $showContactEditingDialog}'; } } /// generated route for -/// [_i8.ReplicaImageViewer] -class ReplicaImageViewer extends _i40.PageRouteInfo { - ReplicaImageViewer({ - required _i42.ReplicaApi replicaApi, - required _i42.ReplicaSearchItem item, - required _i42.SearchCategory category, - List<_i40.PageRouteInfo>? children, +/// [_i15.FullScreenDialog] +class FullScreenDialogPage + extends _i41.PageRouteInfo { + FullScreenDialogPage({ + required _i43.Widget widget, + _i43.Key? key, + List<_i41.PageRouteInfo>? children, }) : super( - ReplicaImageViewer.name, - args: ReplicaImageViewerArgs( - replicaApi: replicaApi, - item: item, - category: category, + FullScreenDialogPage.name, + args: FullScreenDialogPageArgs( + widget: widget, + key: key, ), initialChildren: children, ); - static const String name = 'ReplicaImageViewer'; + static const String name = 'FullScreenDialogPage'; - static const _i40.PageInfo page = - _i40.PageInfo(name); + static const _i41.PageInfo page = + _i41.PageInfo(name); } -class ReplicaImageViewerArgs { - const ReplicaImageViewerArgs({ - required this.replicaApi, - required this.item, - required this.category, +class FullScreenDialogPageArgs { + const FullScreenDialogPageArgs({ + required this.widget, + this.key, }); - final _i42.ReplicaApi replicaApi; - - final _i42.ReplicaSearchItem item; + final _i43.Widget widget; - final _i42.SearchCategory category; + final _i43.Key? key; @override String toString() { - return 'ReplicaImageViewerArgs{replicaApi: $replicaApi, item: $item, category: $category}'; + return 'FullScreenDialogPageArgs{widget: $widget, key: $key}'; } } /// generated route for -/// [_i9.ReplicaVideoViewer] -class ReplicaVideoViewer extends _i40.PageRouteInfo { - ReplicaVideoViewer({ - required _i42.ReplicaApi replicaApi, - required _i42.ReplicaSearchItem item, - required _i42.SearchCategory category, - List<_i40.PageRouteInfo>? children, - }) : super( - ReplicaVideoViewer.name, - args: ReplicaVideoViewerArgs( - replicaApi: replicaApi, - item: item, - category: category, - ), +/// [_i16.HomePage] +class Home extends _i41.PageRouteInfo { + const Home({List<_i41.PageRouteInfo>? children}) + : super( + Home.name, initialChildren: children, ); - static const String name = 'ReplicaVideoViewer'; - - static const _i40.PageInfo page = - _i40.PageInfo(name); -} - -class ReplicaVideoViewerArgs { - const ReplicaVideoViewerArgs({ - required this.replicaApi, - required this.item, - required this.category, - }); - - final _i42.ReplicaApi replicaApi; - - final _i42.ReplicaSearchItem item; - - final _i42.SearchCategory category; + static const String name = 'Home'; - @override - String toString() { - return 'ReplicaVideoViewerArgs{replicaApi: $replicaApi, item: $item, category: $category}'; - } + static const _i41.PageInfo page = _i41.PageInfo(name); } /// generated route for -/// [_i10.ReplicaMiscViewer] -class ReplicaMiscViewer extends _i40.PageRouteInfo { - ReplicaMiscViewer({ - required _i42.ReplicaApi replicaApi, - required _i42.ReplicaSearchItem item, - required _i42.SearchCategory category, - List<_i40.PageRouteInfo>? children, +/// [_i17.Introduce] +class Introduce extends _i41.PageRouteInfo { + Introduce({ + required bool singleIntro, + _i42.Contact? contactToIntro, + List<_i41.PageRouteInfo>? children, }) : super( - ReplicaMiscViewer.name, - args: ReplicaMiscViewerArgs( - replicaApi: replicaApi, - item: item, - category: category, + Introduce.name, + args: IntroduceArgs( + singleIntro: singleIntro, + contactToIntro: contactToIntro, ), initialChildren: children, ); - static const String name = 'ReplicaMiscViewer'; + static const String name = 'Introduce'; - static const _i40.PageInfo page = - _i40.PageInfo(name); + static const _i41.PageInfo page = + _i41.PageInfo(name); } -class ReplicaMiscViewerArgs { - const ReplicaMiscViewerArgs({ - required this.replicaApi, - required this.item, - required this.category, +class IntroduceArgs { + const IntroduceArgs({ + required this.singleIntro, + this.contactToIntro, }); - final _i42.ReplicaApi replicaApi; - - final _i42.ReplicaSearchItem item; + final bool singleIntro; - final _i42.SearchCategory category; + final _i42.Contact? contactToIntro; @override String toString() { - return 'ReplicaMiscViewerArgs{replicaApi: $replicaApi, item: $item, category: $category}'; + return 'IntroduceArgs{singleIntro: $singleIntro, contactToIntro: $contactToIntro}'; } } /// generated route for -/// [_i11.ReplicaLinkHandler] -class ReplicaLinkHandler extends _i40.PageRouteInfo { - ReplicaLinkHandler({ - _i41.Key? key, - required _i42.ReplicaApi replicaApi, - required _i42.ReplicaLink replicaLink, - List<_i40.PageRouteInfo>? children, - }) : super( - ReplicaLinkHandler.name, - args: ReplicaLinkHandlerArgs( - key: key, - replicaApi: replicaApi, - replicaLink: replicaLink, - ), +/// [_i18.Introductions] +class Introductions extends _i41.PageRouteInfo { + const Introductions({List<_i41.PageRouteInfo>? children}) + : super( + Introductions.name, initialChildren: children, ); - static const String name = 'ReplicaLinkHandler'; + static const String name = 'Introductions'; - static const _i40.PageInfo page = - _i40.PageInfo(name); + static const _i41.PageInfo page = _i41.PageInfo(name); } -class ReplicaLinkHandlerArgs { - const ReplicaLinkHandlerArgs({ - this.key, - required this.replicaApi, - required this.replicaLink, - }); - - final _i41.Key? key; - - final _i42.ReplicaApi replicaApi; +/// generated route for +/// [_i19.InviteFriends] +class InviteFriends extends _i41.PageRouteInfo { + const InviteFriends({List<_i41.PageRouteInfo>? children}) + : super( + InviteFriends.name, + initialChildren: children, + ); - final _i42.ReplicaLink replicaLink; + static const String name = 'InviteFriends'; - @override - String toString() { - return 'ReplicaLinkHandlerArgs{key: $key, replicaApi: $replicaApi, replicaLink: $replicaLink}'; - } + static const _i41.PageInfo page = _i41.PageInfo(name); } /// generated route for -/// [_i12.ReplicaUploadReview] -class ReplicaUploadReview extends _i40.PageRouteInfo { - ReplicaUploadReview({ - _i41.Key? key, - required _i43.File fileToUpload, - required String fileTitle, - String? fileDescription, - List<_i40.PageRouteInfo>? children, +/// [_i20.Language] +class Language extends _i41.PageRouteInfo { + Language({ + _i43.Key? key, + List<_i41.PageRouteInfo>? children, }) : super( - ReplicaUploadReview.name, - args: ReplicaUploadReviewArgs( - key: key, - fileToUpload: fileToUpload, - fileTitle: fileTitle, - fileDescription: fileDescription, - ), + Language.name, + args: LanguageArgs(key: key), initialChildren: children, ); - static const String name = 'ReplicaUploadReview'; + static const String name = 'Language'; - static const _i40.PageInfo page = - _i40.PageInfo(name); + static const _i41.PageInfo page = + _i41.PageInfo(name); } -class ReplicaUploadReviewArgs { - const ReplicaUploadReviewArgs({ - this.key, - required this.fileToUpload, - required this.fileTitle, - this.fileDescription, - }); - - final _i41.Key? key; - - final _i43.File fileToUpload; - - final String fileTitle; +class LanguageArgs { + const LanguageArgs({this.key}); - final String? fileDescription; + final _i43.Key? key; @override String toString() { - return 'ReplicaUploadReviewArgs{key: $key, fileToUpload: $fileToUpload, fileTitle: $fileTitle, fileDescription: $fileDescription}'; + return 'LanguageArgs{key: $key}'; } } /// generated route for -/// [_i13.ReplicaUploadDescription] -class ReplicaUploadDescription - extends _i40.PageRouteInfo { - ReplicaUploadDescription({ - _i41.Key? key, - required _i43.File fileToUpload, - required String fileTitle, - String? fileDescription, - List<_i40.PageRouteInfo>? children, +/// [_i21.LanternDesktop] +class LanternDesktop extends _i41.PageRouteInfo { + const LanternDesktop({List<_i41.PageRouteInfo>? children}) + : super( + LanternDesktop.name, + initialChildren: children, + ); + + static const String name = 'LanternDesktop'; + + static const _i41.PageInfo page = _i41.PageInfo(name); +} + +/// generated route for +/// [_i22.LinkDevice] +class LinkDevice extends _i41.PageRouteInfo { + LinkDevice({ + _i43.Key? key, + List<_i41.PageRouteInfo>? children, }) : super( - ReplicaUploadDescription.name, - args: ReplicaUploadDescriptionArgs( - key: key, - fileToUpload: fileToUpload, - fileTitle: fileTitle, - fileDescription: fileDescription, - ), + LinkDevice.name, + args: LinkDeviceArgs(key: key), initialChildren: children, ); - static const String name = 'ReplicaUploadDescription'; + static const String name = 'LinkDevice'; - static const _i40.PageInfo page = - _i40.PageInfo(name); + static const _i41.PageInfo page = + _i41.PageInfo(name); } -class ReplicaUploadDescriptionArgs { - const ReplicaUploadDescriptionArgs({ - this.key, - required this.fileToUpload, - required this.fileTitle, - this.fileDescription, - }); - - final _i41.Key? key; - - final _i43.File fileToUpload; - - final String fileTitle; +class LinkDeviceArgs { + const LinkDeviceArgs({this.key}); - final String? fileDescription; + final _i43.Key? key; @override String toString() { - return 'ReplicaUploadDescriptionArgs{key: $key, fileToUpload: $fileToUpload, fileTitle: $fileTitle, fileDescription: $fileDescription}'; + return 'LinkDeviceArgs{key: $key}'; } } /// generated route for -/// [_i14.ReplicaUploadTitle] -class ReplicaUploadTitle extends _i40.PageRouteInfo { - ReplicaUploadTitle({ - _i41.Key? key, - required _i43.File fileToUpload, - String? fileTitle, - String? fileDescription, - List<_i40.PageRouteInfo>? children, - }) : super( - ReplicaUploadTitle.name, - args: ReplicaUploadTitleArgs( - key: key, - fileToUpload: fileToUpload, - fileTitle: fileTitle, - fileDescription: fileDescription, - ), +/// [_i23.NewChat] +class NewChat extends _i41.PageRouteInfo { + const NewChat({List<_i41.PageRouteInfo>? children}) + : super( + NewChat.name, initialChildren: children, ); - static const String name = 'ReplicaUploadTitle'; + static const String name = 'NewChat'; - static const _i40.PageInfo page = - _i40.PageInfo(name); + static const _i41.PageInfo page = _i41.PageInfo(name); } -class ReplicaUploadTitleArgs { - const ReplicaUploadTitleArgs({ - this.key, - required this.fileToUpload, - this.fileTitle, - this.fileDescription, - }); - - final _i41.Key? key; - - final _i43.File fileToUpload; - - final String? fileTitle; +/// generated route for +/// [_i24.PlansPage] +class PlansPage extends _i41.PageRouteInfo { + const PlansPage({List<_i41.PageRouteInfo>? children}) + : super( + PlansPage.name, + initialChildren: children, + ); - final String? fileDescription; + static const String name = 'PlansPage'; - @override - String toString() { - return 'ReplicaUploadTitleArgs{key: $key, fileToUpload: $fileToUpload, fileTitle: $fileTitle, fileDescription: $fileDescription}'; - } + static const _i41.PageInfo page = _i41.PageInfo(name); } /// generated route for -/// [_i15.ReportIssue] -class ReportIssue extends _i40.PageRouteInfo { - ReportIssue({ - _i41.Key? key, - List<_i40.PageRouteInfo>? children, +/// [_i25.PlayCheckout] +class PlayCheckout extends _i41.PageRouteInfo { + PlayCheckout({ + required _i43.Plan plan, + required bool isPro, + _i43.Key? key, + List<_i41.PageRouteInfo>? children, }) : super( - ReportIssue.name, - args: ReportIssueArgs(key: key), + PlayCheckout.name, + args: PlayCheckoutArgs( + plan: plan, + isPro: isPro, + key: key, + ), initialChildren: children, ); - static const String name = 'ReportIssue'; + static const String name = 'PlayCheckout'; - static const _i40.PageInfo page = - _i40.PageInfo(name); + static const _i41.PageInfo page = + _i41.PageInfo(name); } -class ReportIssueArgs { - const ReportIssueArgs({this.key}); +class PlayCheckoutArgs { + const PlayCheckoutArgs({ + required this.plan, + required this.isPro, + this.key, + }); - final _i41.Key? key; + final _i43.Plan plan; + + final bool isPro; + + final _i43.Key? key; @override String toString() { - return 'ReportIssueArgs{key: $key}'; + return 'PlayCheckoutArgs{plan: $plan, isPro: $isPro, key: $key}'; } } /// generated route for -/// [_i16.RecoveryKey] -class RecoveryKey extends _i40.PageRouteInfo { +/// [_i26.RecoveryKey] +class RecoveryKey extends _i41.PageRouteInfo { RecoveryKey({ - _i44.Key? key, - List<_i40.PageRouteInfo>? children, + _i42.Key? key, + List<_i41.PageRouteInfo>? children, }) : super( RecoveryKey.name, args: RecoveryKeyArgs(key: key), @@ -1022,14 +1075,14 @@ class RecoveryKey extends _i40.PageRouteInfo { static const String name = 'RecoveryKey'; - static const _i40.PageInfo page = - _i40.PageInfo(name); + static const _i41.PageInfo page = + _i41.PageInfo(name); } class RecoveryKeyArgs { const RecoveryKeyArgs({this.key}); - final _i44.Key? key; + final _i42.Key? key; @override String toString() { @@ -1038,368 +1091,439 @@ class RecoveryKeyArgs { } /// generated route for -/// [_i17.AccountManagement] -class AccountManagement extends _i40.PageRouteInfo { - AccountManagement({ - _i44.Key? key, - required bool isPro, - List<_i40.PageRouteInfo>? children, +/// [_i27.ReplicaAudioViewer] +class ReplicaAudioViewer extends _i41.PageRouteInfo { + ReplicaAudioViewer({ + required _i44.ReplicaApi replicaApi, + required _i44.ReplicaSearchItem item, + required _i44.SearchCategory category, + List<_i41.PageRouteInfo>? children, }) : super( - AccountManagement.name, - args: AccountManagementArgs( - key: key, - isPro: isPro, + ReplicaAudioViewer.name, + args: ReplicaAudioViewerArgs( + replicaApi: replicaApi, + item: item, + category: category, ), initialChildren: children, ); - static const String name = 'AccountManagement'; + static const String name = 'ReplicaAudioViewer'; - static const _i40.PageInfo page = - _i40.PageInfo(name); + static const _i41.PageInfo page = + _i41.PageInfo(name); } -class AccountManagementArgs { - const AccountManagementArgs({ - this.key, - required this.isPro, +class ReplicaAudioViewerArgs { + const ReplicaAudioViewerArgs({ + required this.replicaApi, + required this.item, + required this.category, }); - final _i44.Key? key; + final _i44.ReplicaApi replicaApi; - final bool isPro; + final _i44.ReplicaSearchItem item; + + final _i44.SearchCategory category; @override String toString() { - return 'AccountManagementArgs{key: $key, isPro: $isPro}'; + return 'ReplicaAudioViewerArgs{replicaApi: $replicaApi, item: $item, category: $category}'; } } /// generated route for -/// [_i18.AuthorizeDeviceViaEmailPin] -class AuthorizeDeviceEmailPin - extends _i40.PageRouteInfo { - AuthorizeDeviceEmailPin({ - _i41.Key? key, - List<_i40.PageRouteInfo>? children, +/// [_i28.ReplicaImageViewer] +class ReplicaImageViewer extends _i41.PageRouteInfo { + ReplicaImageViewer({ + required _i44.ReplicaApi replicaApi, + required _i44.ReplicaSearchItem item, + required _i44.SearchCategory category, + List<_i41.PageRouteInfo>? children, }) : super( - AuthorizeDeviceEmailPin.name, - args: AuthorizeDeviceEmailPinArgs(key: key), + ReplicaImageViewer.name, + args: ReplicaImageViewerArgs( + replicaApi: replicaApi, + item: item, + category: category, + ), initialChildren: children, ); - static const String name = 'AuthorizeDeviceEmailPin'; + static const String name = 'ReplicaImageViewer'; - static const _i40.PageInfo page = - _i40.PageInfo(name); + static const _i41.PageInfo page = + _i41.PageInfo(name); } -class AuthorizeDeviceEmailPinArgs { - const AuthorizeDeviceEmailPinArgs({this.key}); +class ReplicaImageViewerArgs { + const ReplicaImageViewerArgs({ + required this.replicaApi, + required this.item, + required this.category, + }); - final _i41.Key? key; + final _i44.ReplicaApi replicaApi; + + final _i44.ReplicaSearchItem item; + + final _i44.SearchCategory category; @override String toString() { - return 'AuthorizeDeviceEmailPinArgs{key: $key}'; + return 'ReplicaImageViewerArgs{replicaApi: $replicaApi, item: $item, category: $category}'; } } /// generated route for -/// [_i19.ApproveDevice] -class ApproveDevice extends _i40.PageRouteInfo { - ApproveDevice({ - _i41.Key? key, - List<_i40.PageRouteInfo>? children, +/// [_i29.ReplicaLinkHandler] +class ReplicaLinkHandler extends _i41.PageRouteInfo { + ReplicaLinkHandler({ + _i43.Key? key, + required _i44.ReplicaApi replicaApi, + required _i44.ReplicaLink replicaLink, + List<_i41.PageRouteInfo>? children, }) : super( - ApproveDevice.name, - args: ApproveDeviceArgs(key: key), + ReplicaLinkHandler.name, + args: ReplicaLinkHandlerArgs( + key: key, + replicaApi: replicaApi, + replicaLink: replicaLink, + ), initialChildren: children, ); - static const String name = 'ApproveDevice'; + static const String name = 'ReplicaLinkHandler'; - static const _i40.PageInfo page = - _i40.PageInfo(name); + static const _i41.PageInfo page = + _i41.PageInfo(name); } -class ApproveDeviceArgs { - const ApproveDeviceArgs({this.key}); +class ReplicaLinkHandlerArgs { + const ReplicaLinkHandlerArgs({ + this.key, + required this.replicaApi, + required this.replicaLink, + }); - final _i41.Key? key; + final _i43.Key? key; + + final _i44.ReplicaApi replicaApi; + + final _i44.ReplicaLink replicaLink; @override String toString() { - return 'ApproveDeviceArgs{key: $key}'; + return 'ReplicaLinkHandlerArgs{key: $key, replicaApi: $replicaApi, replicaLink: $replicaLink}'; } } /// generated route for -/// [_i20.LinkDevice] -class LinkDevice extends _i40.PageRouteInfo { - LinkDevice({ - _i41.Key? key, - List<_i40.PageRouteInfo>? children, +/// [_i30.ReplicaMiscViewer] +class ReplicaMiscViewer extends _i41.PageRouteInfo { + ReplicaMiscViewer({ + required _i44.ReplicaApi replicaApi, + required _i44.ReplicaSearchItem item, + required _i44.SearchCategory category, + List<_i41.PageRouteInfo>? children, }) : super( - LinkDevice.name, - args: LinkDeviceArgs(key: key), + ReplicaMiscViewer.name, + args: ReplicaMiscViewerArgs( + replicaApi: replicaApi, + item: item, + category: category, + ), initialChildren: children, ); - static const String name = 'LinkDevice'; + static const String name = 'ReplicaMiscViewer'; - static const _i40.PageInfo page = - _i40.PageInfo(name); + static const _i41.PageInfo page = + _i41.PageInfo(name); } -class LinkDeviceArgs { - const LinkDeviceArgs({this.key}); +class ReplicaMiscViewerArgs { + const ReplicaMiscViewerArgs({ + required this.replicaApi, + required this.item, + required this.category, + }); - final _i41.Key? key; + final _i44.ReplicaApi replicaApi; + + final _i44.ReplicaSearchItem item; + + final _i44.SearchCategory category; @override String toString() { - return 'LinkDeviceArgs{key: $key}'; + return 'ReplicaMiscViewerArgs{replicaApi: $replicaApi, item: $item, category: $category}'; } } /// generated route for -/// [_i21.AuthorizeDeviceViaEmail] -class AuthorizeDeviceEmail - extends _i40.PageRouteInfo { - AuthorizeDeviceEmail({ - _i41.Key? key, - List<_i40.PageRouteInfo>? children, +/// [_i31.ReplicaUploadDescription] +class ReplicaUploadDescription + extends _i41.PageRouteInfo { + ReplicaUploadDescription({ + _i43.Key? key, + required _i45.File fileToUpload, + required String fileTitle, + String? fileDescription, + List<_i41.PageRouteInfo>? children, }) : super( - AuthorizeDeviceEmail.name, - args: AuthorizeDeviceEmailArgs(key: key), + ReplicaUploadDescription.name, + args: ReplicaUploadDescriptionArgs( + key: key, + fileToUpload: fileToUpload, + fileTitle: fileTitle, + fileDescription: fileDescription, + ), initialChildren: children, ); - static const String name = 'AuthorizeDeviceEmail'; + static const String name = 'ReplicaUploadDescription'; - static const _i40.PageInfo page = - _i40.PageInfo(name); + static const _i41.PageInfo page = + _i41.PageInfo(name); } -class AuthorizeDeviceEmailArgs { - const AuthorizeDeviceEmailArgs({this.key}); +class ReplicaUploadDescriptionArgs { + const ReplicaUploadDescriptionArgs({ + this.key, + required this.fileToUpload, + required this.fileTitle, + this.fileDescription, + }); + + final _i43.Key? key; + + final _i45.File fileToUpload; - final _i41.Key? key; + final String fileTitle; + + final String? fileDescription; @override String toString() { - return 'AuthorizeDeviceEmailArgs{key: $key}'; + return 'ReplicaUploadDescriptionArgs{key: $key, fileToUpload: $fileToUpload, fileTitle: $fileTitle, fileDescription: $fileDescription}'; } } /// generated route for -/// [_i22.AuthorizeDeviceForPro] -class AuthorizePro extends _i40.PageRouteInfo { - AuthorizePro({ - _i41.Key? key, - List<_i40.PageRouteInfo>? children, +/// [_i32.ReplicaUploadReview] +class ReplicaUploadReview extends _i41.PageRouteInfo { + ReplicaUploadReview({ + _i43.Key? key, + required _i45.File fileToUpload, + required String fileTitle, + String? fileDescription, + List<_i41.PageRouteInfo>? children, }) : super( - AuthorizePro.name, - args: AuthorizeProArgs(key: key), + ReplicaUploadReview.name, + args: ReplicaUploadReviewArgs( + key: key, + fileToUpload: fileToUpload, + fileTitle: fileTitle, + fileDescription: fileDescription, + ), initialChildren: children, ); - static const String name = 'AuthorizePro'; - - static const _i40.PageInfo page = - _i40.PageInfo(name); -} - -class AuthorizeProArgs { - const AuthorizeProArgs({this.key}); - - final _i41.Key? key; + static const String name = 'ReplicaUploadReview'; - @override - String toString() { - return 'AuthorizeProArgs{key: $key}'; - } + static const _i41.PageInfo page = + _i41.PageInfo(name); } -/// generated route for -/// [_i23.AccountMenu] -class Account extends _i40.PageRouteInfo { - Account({ - _i41.Key? key, - List<_i40.PageRouteInfo>? children, - }) : super( - Account.name, - args: AccountArgs(key: key), - initialChildren: children, - ); +class ReplicaUploadReviewArgs { + const ReplicaUploadReviewArgs({ + this.key, + required this.fileToUpload, + required this.fileTitle, + this.fileDescription, + }); - static const String name = 'Account'; + final _i43.Key? key; - static const _i40.PageInfo page = - _i40.PageInfo(name); -} + final _i45.File fileToUpload; -class AccountArgs { - const AccountArgs({this.key}); + final String fileTitle; - final _i41.Key? key; + final String? fileDescription; @override String toString() { - return 'AccountArgs{key: $key}'; + return 'ReplicaUploadReviewArgs{key: $key, fileToUpload: $fileToUpload, fileTitle: $fileTitle, fileDescription: $fileDescription}'; } } /// generated route for -/// [_i24.Support] -class Support extends _i40.PageRouteInfo { - const Support({List<_i40.PageRouteInfo>? children}) - : super( - Support.name, +/// [_i33.ReplicaUploadTitle] +class ReplicaUploadTitle extends _i41.PageRouteInfo { + ReplicaUploadTitle({ + _i43.Key? key, + required _i45.File fileToUpload, + String? fileTitle, + String? fileDescription, + List<_i41.PageRouteInfo>? children, + }) : super( + ReplicaUploadTitle.name, + args: ReplicaUploadTitleArgs( + key: key, + fileToUpload: fileToUpload, + fileTitle: fileTitle, + fileDescription: fileDescription, + ), initialChildren: children, ); - static const String name = 'Support'; + static const String name = 'ReplicaUploadTitle'; - static const _i40.PageInfo page = _i40.PageInfo(name); + static const _i41.PageInfo page = + _i41.PageInfo(name); } -/// generated route for -/// [_i25.LanternDesktop] -class LanternDesktop extends _i40.PageRouteInfo { - const LanternDesktop({List<_i40.PageRouteInfo>? children}) - : super( - LanternDesktop.name, - initialChildren: children, - ); +class ReplicaUploadTitleArgs { + const ReplicaUploadTitleArgs({ + this.key, + required this.fileToUpload, + this.fileTitle, + this.fileDescription, + }); - static const String name = 'LanternDesktop'; + final _i43.Key? key; - static const _i40.PageInfo page = _i40.PageInfo(name); -} + final _i45.File fileToUpload; -/// generated route for -/// [_i26.InviteFriends] -class InviteFriends extends _i40.PageRouteInfo { - const InviteFriends({List<_i40.PageRouteInfo>? children}) - : super( - InviteFriends.name, - initialChildren: children, - ); + final String? fileTitle; - static const String name = 'InviteFriends'; + final String? fileDescription; - static const _i40.PageInfo page = _i40.PageInfo(name); + @override + String toString() { + return 'ReplicaUploadTitleArgs{key: $key, fileToUpload: $fileToUpload, fileTitle: $fileTitle, fileDescription: $fileDescription}'; + } } /// generated route for -/// [_i27.ChatNumberAccount] -class ChatNumberAccount extends _i40.PageRouteInfo { - const ChatNumberAccount({List<_i40.PageRouteInfo>? children}) - : super( - ChatNumberAccount.name, +/// [_i34.ReplicaVideoViewer] +class ReplicaVideoViewer extends _i41.PageRouteInfo { + ReplicaVideoViewer({ + required _i44.ReplicaApi replicaApi, + required _i44.ReplicaSearchItem item, + required _i44.SearchCategory category, + List<_i41.PageRouteInfo>? children, + }) : super( + ReplicaVideoViewer.name, + args: ReplicaVideoViewerArgs( + replicaApi: replicaApi, + item: item, + category: category, + ), initialChildren: children, ); - static const String name = 'ChatNumberAccount'; + static const String name = 'ReplicaVideoViewer'; - static const _i40.PageInfo page = _i40.PageInfo(name); + static const _i41.PageInfo page = + _i41.PageInfo(name); } -/// generated route for -/// [_i28.SplitTunneling] -class SplitTunneling extends _i40.PageRouteInfo { - SplitTunneling({ - _i45.Key? key, - List<_i40.PageRouteInfo>? children, - }) : super( - SplitTunneling.name, - args: SplitTunnelingArgs(key: key), - initialChildren: children, - ); - - static const String name = 'SplitTunneling'; +class ReplicaVideoViewerArgs { + const ReplicaVideoViewerArgs({ + required this.replicaApi, + required this.item, + required this.category, + }); - static const _i40.PageInfo page = - _i40.PageInfo(name); -} + final _i44.ReplicaApi replicaApi; -class SplitTunnelingArgs { - const SplitTunnelingArgs({this.key}); + final _i44.ReplicaSearchItem item; - final _i45.Key? key; + final _i44.SearchCategory category; @override String toString() { - return 'SplitTunnelingArgs{key: $key}'; + return 'ReplicaVideoViewerArgs{replicaApi: $replicaApi, item: $item, category: $category}'; } } /// generated route for -/// [_i29.BlockedUsers] -class BlockedUsers extends _i40.PageRouteInfo { - BlockedUsers({ - _i44.Key? key, - List<_i40.PageRouteInfo>? children, +/// [_i35.ReportIssue] +class ReportIssue extends _i41.PageRouteInfo { + ReportIssue({ + _i43.Key? key, + List<_i41.PageRouteInfo>? children, }) : super( - BlockedUsers.name, - args: BlockedUsersArgs(key: key), + ReportIssue.name, + args: ReportIssueArgs(key: key), initialChildren: children, ); - static const String name = 'BlockedUsers'; + static const String name = 'ReportIssue'; - static const _i40.PageInfo page = - _i40.PageInfo(name); + static const _i41.PageInfo page = + _i41.PageInfo(name); } -class BlockedUsersArgs { - const BlockedUsersArgs({this.key}); +class ReportIssueArgs { + const ReportIssueArgs({this.key}); - final _i44.Key? key; + final _i43.Key? key; @override String toString() { - return 'BlockedUsersArgs{key: $key}'; + return 'ReportIssueArgs{key: $key}'; } } /// generated route for -/// [_i30.Language] -class Language extends _i40.PageRouteInfo { - Language({ - _i41.Key? key, - List<_i40.PageRouteInfo>? children, +/// [_i36.ResellerCodeCheckout] +class ResellerCodeCheckout + extends _i41.PageRouteInfo { + ResellerCodeCheckout({ + required bool isPro, + _i43.Key? key, + List<_i41.PageRouteInfo>? children, }) : super( - Language.name, - args: LanguageArgs(key: key), + ResellerCodeCheckout.name, + args: ResellerCodeCheckoutArgs( + isPro: isPro, + key: key, + ), initialChildren: children, ); - static const String name = 'Language'; + static const String name = 'ResellerCodeCheckout'; - static const _i40.PageInfo page = - _i40.PageInfo(name); + static const _i41.PageInfo page = + _i41.PageInfo(name); } -class LanguageArgs { - const LanguageArgs({this.key}); +class ResellerCodeCheckoutArgs { + const ResellerCodeCheckoutArgs({ + required this.isPro, + this.key, + }); + + final bool isPro; - final _i41.Key? key; + final _i43.Key? key; @override String toString() { - return 'LanguageArgs{key: $key}'; + return 'ResellerCodeCheckoutArgs{isPro: $isPro, key: $key}'; } } /// generated route for -/// [_i31.Settings] -class Settings extends _i40.PageRouteInfo { +/// [_i37.Settings] +class Settings extends _i41.PageRouteInfo { Settings({ - _i41.Key? key, - List<_i40.PageRouteInfo>? children, + _i43.Key? key, + List<_i41.PageRouteInfo>? children, }) : super( Settings.name, args: SettingsArgs(key: key), @@ -1408,14 +1532,14 @@ class Settings extends _i40.PageRouteInfo { static const String name = 'Settings'; - static const _i40.PageInfo page = - _i40.PageInfo(name); + static const _i41.PageInfo page = + _i41.PageInfo(name); } class SettingsArgs { const SettingsArgs({this.key}); - final _i41.Key? key; + final _i43.Key? key; @override String toString() { @@ -1424,181 +1548,97 @@ class SettingsArgs { } /// generated route for -/// [_i32.AddViaChatNumber] -class AddViaChatNumber extends _i40.PageRouteInfo { - const AddViaChatNumber({List<_i40.PageRouteInfo>? children}) - : super( - AddViaChatNumber.name, - initialChildren: children, - ); - - static const String name = 'AddViaChatNumber'; - - static const _i40.PageInfo page = _i40.PageInfo(name); -} - -/// generated route for -/// [_i33.ContactInfo] -class ContactInfo extends _i40.PageRouteInfo { - ContactInfo({ - required _i44.Contact contact, - List<_i40.PageRouteInfo>? children, +/// [_i38.SplitTunneling] +class SplitTunneling extends _i41.PageRouteInfo { + SplitTunneling({ + _i46.Key? key, + List<_i41.PageRouteInfo>? children, }) : super( - ContactInfo.name, - args: ContactInfoArgs(contact: contact), + SplitTunneling.name, + args: SplitTunnelingArgs(key: key), initialChildren: children, ); - static const String name = 'ContactInfo'; + static const String name = 'SplitTunneling'; - static const _i40.PageInfo page = - _i40.PageInfo(name); + static const _i41.PageInfo page = + _i41.PageInfo(name); } -class ContactInfoArgs { - const ContactInfoArgs({required this.contact}); +class SplitTunnelingArgs { + const SplitTunnelingArgs({this.key}); - final _i44.Contact contact; + final _i46.Key? key; @override String toString() { - return 'ContactInfoArgs{contact: $contact}'; + return 'SplitTunnelingArgs{key: $key}'; } } /// generated route for -/// [_i34.NewChat] -class NewChat extends _i40.PageRouteInfo { - const NewChat({List<_i40.PageRouteInfo>? children}) - : super( - NewChat.name, - initialChildren: children, - ); - - static const String name = 'NewChat'; - - static const _i40.PageInfo page = _i40.PageInfo(name); -} - -/// generated route for -/// [_i35.Introductions] -class Introductions extends _i40.PageRouteInfo { - const Introductions({List<_i40.PageRouteInfo>? children}) - : super( - Introductions.name, - initialChildren: children, - ); - - static const String name = 'Introductions'; - - static const _i40.PageInfo page = _i40.PageInfo(name); -} - -/// generated route for -/// [_i36.Introduce] -class Introduce extends _i40.PageRouteInfo { - Introduce({ - required bool singleIntro, - _i44.Contact? contactToIntro, - List<_i40.PageRouteInfo>? children, +/// [_i39.StripeCheckout] +class StripeCheckout extends _i41.PageRouteInfo { + StripeCheckout({ + required _i43.Plan plan, + required String email, + String? refCode, + required bool isPro, + _i43.Key? key, + List<_i41.PageRouteInfo>? children, }) : super( - Introduce.name, - args: IntroduceArgs( - singleIntro: singleIntro, - contactToIntro: contactToIntro, + StripeCheckout.name, + args: StripeCheckoutArgs( + plan: plan, + email: email, + refCode: refCode, + isPro: isPro, + key: key, ), initialChildren: children, ); - static const String name = 'Introduce'; + static const String name = 'StripeCheckout'; - static const _i40.PageInfo page = - _i40.PageInfo(name); + static const _i41.PageInfo page = + _i41.PageInfo(name); } -class IntroduceArgs { - const IntroduceArgs({ - required this.singleIntro, - this.contactToIntro, +class StripeCheckoutArgs { + const StripeCheckoutArgs({ + required this.plan, + required this.email, + this.refCode, + required this.isPro, + this.key, }); - final bool singleIntro; + final _i43.Plan plan; - final _i44.Contact? contactToIntro; + final String email; - @override - String toString() { - return 'IntroduceArgs{singleIntro: $singleIntro, contactToIntro: $contactToIntro}'; - } -} + final String? refCode; -/// generated route for -/// [_i37.ChatNumberRecovery] -class ChatNumberRecovery extends _i40.PageRouteInfo { - const ChatNumberRecovery({List<_i40.PageRouteInfo>? children}) - : super( - ChatNumberRecovery.name, - initialChildren: children, - ); + final bool isPro; - static const String name = 'ChatNumberRecovery'; + final _i43.Key? key; - static const _i40.PageInfo page = _i40.PageInfo(name); + @override + String toString() { + return 'StripeCheckoutArgs{plan: $plan, email: $email, refCode: $refCode, isPro: $isPro, key: $key}'; + } } /// generated route for -/// [_i38.ChatNumberMessaging] -class ChatNumberMessaging extends _i40.PageRouteInfo { - const ChatNumberMessaging({List<_i40.PageRouteInfo>? children}) +/// [_i40.Support] +class Support extends _i41.PageRouteInfo { + const Support({List<_i41.PageRouteInfo>? children}) : super( - ChatNumberMessaging.name, - initialChildren: children, - ); - - static const String name = 'ChatNumberMessaging'; - - static const _i40.PageInfo page = _i40.PageInfo(name); -} - -/// generated route for -/// [_i39.Conversation] -class Conversation extends _i40.PageRouteInfo { - Conversation({ - required _i44.ContactId contactId, - int? initialScrollIndex, - bool showContactEditingDialog = false, - List<_i40.PageRouteInfo>? children, - }) : super( - Conversation.name, - args: ConversationArgs( - contactId: contactId, - initialScrollIndex: initialScrollIndex, - showContactEditingDialog: showContactEditingDialog, - ), + Support.name, initialChildren: children, ); - static const String name = 'Conversation'; - - static const _i40.PageInfo page = - _i40.PageInfo(name); -} - -class ConversationArgs { - const ConversationArgs({ - required this.contactId, - this.initialScrollIndex, - this.showContactEditingDialog = false, - }); - - final _i44.ContactId contactId; - - final int? initialScrollIndex; - - final bool showContactEditingDialog; + static const String name = 'Support'; - @override - String toString() { - return 'ConversationArgs{contactId: $contactId, initialScrollIndex: $initialScrollIndex, showContactEditingDialog: $showContactEditingDialog}'; - } + static const _i41.PageInfo page = _i41.PageInfo(name); } diff --git a/lib/plans/plan_details.dart b/lib/plans/plan_details.dart index c8ce8995e..19ee95e62 100644 --- a/lib/plans/plan_details.dart +++ b/lib/plans/plan_details.dart @@ -21,21 +21,16 @@ class PlanCard extends StatelessWidget { padding: const EdgeInsetsDirectional.only(bottom: 16.0), child: CInkWell( onTap: () async { - final inRussia = sessionModel.country.value == 'RU'; + final isPlayVersion = sessionModel.isPlayVersion.value ?? false; // * Play version - if (!inRussia) { - await sessionModel - .submitGooglePlay(planName) - .onError((error, stackTrace) { - // on failure - CDialog.showError( - context, - error: e, - stackTrace: stackTrace, - description: - (error as PlatformException).message ?? error.toString(), - ); - }); + if (isPlayVersion) { + // * Proceed to our own Checkout + await context.pushRoute( + PlayCheckout( + plan: plan, + isPro: isPro, + ), + ); } else { // * Proceed to our own Checkout await context.pushRoute(