Skip to content

Instantly share code, notes, and snippets.

View Wizpna's full-sized avatar
👨‍💻
remote

Promise Amadi Wizpna

👨‍💻
remote
View GitHub Profile
@Wizpna
Wizpna / main.dart
Last active November 19, 2023 18:47
A demonstration project illustrating how to implement appflyer in your Flutter project.
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 {
@Wizpna
Wizpna / main.dart
Last active November 19, 2023 18:45
A demonstration project illustrating how to implement appflyer in your Flutter project.
//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
@Wizpna
Wizpna / main.dart
Last active November 19, 2023 18:46
A demonstration project illustrating how to implement appflyer in your Flutter project.
//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.
@Wizpna
Wizpna / main.dart
Created November 19, 2023 14:55
A demonstration project illustrating how to implement appflyer in your Flutter project.
//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();
}
@Wizpna
Wizpna / main.dart
Created November 19, 2023 14:39
A demonstration project illustrating how to implement appflyer in your Flutter project.
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@Wizpna
Wizpna / main.dart
Last active September 23, 2021 23:38
How I Built a Photo Editing App with 80 lines of code using Flutter and IMG.LY
void imglyEditor(image) async {
await PESDK.openEditor(image: image);
}
@Wizpna
Wizpna / main.dart
Last active September 16, 2021 15:15
How I Built a Photo Editing App with 80 lines of code using Flutter and IMG.LY
imgFromGallery() async {
final image = await ImagePicker().pickImage(source: ImageSource.gallery);
if (image != null) {
setState(() {
imglyEditor(image.path);
});
}
}
@Wizpna
Wizpna / main.dart
Last active August 30, 2021 07:47
How I Built a Photo Editing App with 80 lines of code using Flutter and IMG.LY
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 {
@Wizpna
Wizpna / service.dart
Last active April 26, 2021 07:54
A simple project to demonstrate how to store data to Firebase without adding google-services.json file
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,
@Wizpna
Wizpna / main.dart
Created March 31, 2021 06:31
A simple project to demonstrate how to store data to Firebase without adding google-services.json file
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