Skip to content

Instantly share code, notes, and snippets.

View qureshiayaz29's full-sized avatar
Available

Ayaz Qureshi qureshiayaz29

Available
View GitHub Profile
val manager = ReviewManagerFactory.create(context)
val request = manager.requestReviewFlow()
request.addOnCompleteListener { request ->
if (request.isSuccessful) {
val reviewInfo = request.result
val flow = manager.launchReviewFlow(this, reviewInfo)
flow.addOnCompleteListener { _ ->
//Continue your application process
}
}
@qureshiayaz29
qureshiayaz29 / main.dart
Last active March 20, 2022 15:54
Flutter Animation
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> with SingleTickerProviderStateMixin {
dependencies {
//other dependencies
 implementation 'com.google.android.gms:play-services:12.0.1'
}
@qureshiayaz29
qureshiayaz29 / EncryptedSharedPref.java
Last active November 15, 2020 17:39
Custom file to make SharedPreference easier
import android.content.Context;
import android.content.SharedPreferences;
import androidx.security.crypto.EncryptedSharedPreferences;
import androidx.security.crypto.MasterKeys;
import java.io.IOException;
import java.security.GeneralSecurityException;
public class EncryptedSharedPref{