diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index d261653..a0e3f5b 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -1,5 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
@@ -29,20 +41,4 @@
android:name="flutterEmbedding"
android:value="2"/>
-
-
-
-
-
-
-
- 329
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index 69d1938..cbd9673 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -2,10 +2,6 @@
- LSApplicationQueriesSchemes
-
- youtube
-
CADisableMinimumFrameDurationOnPhone
CFBundleDevelopmentRegion
@@ -50,5 +46,9 @@
UIViewControllerBasedStatusBarAppearance
+ LSApplicationQueriesSchemes
+
+ youtube
+
diff --git a/lib/core/common/result.dart b/lib/core/common/result.dart
index a37695b..be97f09 100644
--- a/lib/core/common/result.dart
+++ b/lib/core/common/result.dart
@@ -1,5 +1,7 @@
// ignore_for_file: no-object-declaration
+import 'dart:async';
+
import 'package:equatable/equatable.dart';
// Code: https://gist.githubusercontent.com/CassiusPacheco/409e66e220ce563440df00385f39ac98/raw/d0506e4b3dadbcf5a21d9cc23b300ecbcc8c57d6/data_result.dart
@@ -29,6 +31,14 @@ abstract class Result extends Equatable {
}
}
+ static Future> from(Future Function() computation) async {
+ try {
+ return Result.success(await computation());
+ } catch (e) {
+ return Result.failure(e);
+ }
+ }
+
/// Get [error] value, returns null when the value is actually [data]
Object? get error => fold