diff --git a/lib/ui/subscription_page.dart b/lib/ui/subscription_page.dart index 357aeda8a..b2002ace4 100644 --- a/lib/ui/subscription_page.dart +++ b/lib/ui/subscription_page.dart @@ -1,7 +1,6 @@ import 'dart:async'; import 'dart:io'; -import 'package:awesome_dialog/awesome_dialog.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; @@ -53,19 +52,29 @@ class _SubscriptionPageState extends State { Bus.instance.fire(UserAuthenticatedEvent()); await dialog.hide(); Navigator.pop(context); - AwesomeDialog( + AlertDialog alert = AlertDialog( + title: Text("success"), + content: Column( + children: [ + Text("thank you, your photos and videos will now be backed up"), + ], + ), + actions: [ + FlatButton( + child: Text("ok"), + onPressed: () { + Navigator.of(context).pop(); + }, + ), + ], + ); + + showDialog( context: context, - dialogType: DialogType.SUCCES, - animType: AnimType.RIGHSLIDE, - title: '', - desc: - 'your photos and videos will now be encrypted and backed up in the background', - btnOkOnPress: () { - Navigator.pop(context); + builder: (BuildContext context) { + return alert; }, - btnOkText: 'ok', - headerAnimationLoop: false, - )..show(); + ); } else if (Platform.isIOS) { await InAppPurchaseConnection.instance.completePurchase(e); } diff --git a/pubspec.lock b/pubspec.lock index 161452eed..4f06d7583 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -29,13 +29,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.5.0-nullsafety.1" - awesome_dialog: - dependency: "direct main" - description: - name: awesome_dialog - url: "https://pub.dartlang.org" - source: hosted - version: "1.3.0" background_fetch: dependency: "direct main" description: @@ -225,20 +218,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "5.2.1" - flare_dart: - dependency: transitive - description: - name: flare_dart - url: "https://pub.dartlang.org" - source: hosted - version: "2.3.4" - flare_flutter: - dependency: transitive - description: - name: flare_flutter - url: "https://pub.dartlang.org" - source: hosted - version: "2.0.6" flutter: dependency: "direct main" description: flutter @@ -625,13 +604,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "0.24.1" - sa_v1_migration: - dependency: transitive - description: - name: sa_v1_migration - url: "https://pub.dartlang.org" - source: hosted - version: "1.1.2" scrollable_positioned_list: dependency: "direct main" description: @@ -695,13 +667,6 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "0.0.1+3" - simple_animations: - dependency: transitive - description: - name: simple_animations - url: "https://pub.dartlang.org" - source: hosted - version: "2.4.2" sky_engine: dependency: transitive description: flutter @@ -763,20 +728,6 @@ packages: relative: true source: path version: "1.3.4" - supercharged: - dependency: transitive - description: - name: supercharged - url: "https://pub.dartlang.org" - source: hosted - version: "1.12.0" - supercharged_dart: - dependency: transitive - description: - name: supercharged_dart - url: "https://pub.dartlang.org" - source: hosted - version: "1.4.0" synchronized: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 9d58295ea..486b31b5d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -71,7 +71,6 @@ dependencies: expansion_card: ^0.1.0 flutter_password_strength: ^0.1.4 flutter_inappwebview: ^4.0.0+4 - awesome_dialog: ^1.3.0 background_fetch: ^0.5.1 dev_dependencies: