This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:app_tracking_transparency/app_tracking_transparency.dart'; | |
import 'package:appsflyer_sdk/appsflyer_sdk.dart'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatefulWidget { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//this function log events to AppFlyer | |
Future<void> logAppFlyerEvent(String eventName, Map eventValues) async { | |
AppsflyerSdk appsflyerSdk = AppsflyerSdk( | |
AppsFlyerOptions( | |
//afDevKey is AppsFlyer Dev key and it's a required parameter | |
afDevKey: "3gnv2x6xnTA5sSXfoMEtcH", | |
//Your apple Id is required for iOS apps and it's a required parameter | |
//To access your Apple ID visit : https://appstoreconnect.apple.com/apps | |
// Click on your app. Create new app if you don't have one. | |
// Then click on App Information at the left side which will open a new window where you will find Apple ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//this function initialize AppFlyer Plugin | |
Future<void> initAppFlyer() async { | |
AppsflyerSdk appsflyerSdk; | |
final appsFlyerOptions = AppsFlyerOptions( | |
//afDevKey is AppsFlyer Dev key and it's a required parameter | |
afDevKey: "3gnv2x6xnTA5sSXfoMEtcH", | |
//Your Apple Id is required for iOS apps and it's a required parameter | |
//To access your Apple ID visit: https://appstoreconnect.apple.com/apps | |
// Click on your app. Create a new app if you don't have one. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//this method initialize App Tracking Transparency Plugin | |
Future<void> initAppTrackingTransparencyPlugin() async { | |
// Platform messages may fail, so we use a try/catch PlatformException. | |
try { | |
final TrackingStatus status = | |
await AppTrackingTransparency.trackingAuthorizationStatus; | |
// If the system can show an authorization request dialog | |
if (status == TrackingStatus.notDetermined) { | |
await AppTrackingTransparency.requestTrackingAuthorization(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void imglyEditor(image) async { | |
await PESDK.openEditor(image: image); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imgFromGallery() async { | |
final image = await ImagePicker().pickImage(source: ImageSource.gallery); | |
if (image != null) { | |
setState(() { | |
imglyEditor(image.path); | |
}); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:image_picker/image_picker.dart'; | |
import 'package:imgly_sdk/imgly_sdk.dart'; | |
import 'package:photo_editor_sdk/photo_editor_sdk.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatefulWidget { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:convert'; | |
import 'package:http/http.dart' as http; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
class Services { | |
static showLoadingDialog(BuildContext context) { | |
showDialog( | |
context: context, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:firebase_without_json_file/service.dart'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override |
NewerOlder