in_app_review_play_store 0.0.3 in_app_review_play_store: ^0.0.3 copied to clipboard
The Flutter plugin for Google Play In-App Review that lets you prompt users to submit Play Store ratings and reviews without the inconvenience of leaving your app or game.
import 'package:flutter/material.dart';
import 'package:in_app_review_play_store/in_app_review_play_store.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
initInAppReview();
}
initInAppReview() async {
InAppReview.init();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('In App Review example app'),
),
body: Center(
child: RaisedButton(
child: Text("Launch In App Review"),
onPressed: () {
InAppReview.launch();
},
),
),
),
);
}
}