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: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
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
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 June 22, 2022 11:15
Demostrating how to build a responsive users interface with flutter
import 'package:flutter/material.dart';
import 'package:responsive_grid/responsive_grid.dart';
void main() => runApp(MaterialApp(
title: 'Responsive Layout',
home: HomePage(),
debugShowCheckedModeBanner: false,
),
);
@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 September 2, 2021 18:20
How to build a chatbot in 20 minutes using Flutter and Dialogflow
import 'package:flutter/material.dart';
import 'package:flutter_dialogflow/dialogflow_v2.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Example Dialogflow Flutter',
@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 {