app_review_helper 0.4.0-rc.1 app_review_helper: ^0.4.0-rc.1 copied to clipboard
This plugin will make it easier for you to use in-app review with minimal conditions.
import 'package:app_review_helper/app_review_helper.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MaterialApp(home: MyApp()));
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
final instance = AppReviewHelper.instance;
@override
void initState() {
init();
super.initState();
}
Future<void> init() async {
instance.initial(
reviewDialogConfig: ReviewDialogConfig(
context: context,
whatCanWeDo: (comment) {
print(comment);
},
),
minCallThisFunction: 0,
minDays: 0,
keepRemind: true,
isDebug: true,
);
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Review Helper')),
body: const Center(child: Text('Example')),
);
}
}