Add Play Store Review option in Flutter

Add Play store Review option in Flutter

Developing an app is a somewhat costly process and also needs huge skills, time, and effort to attain a good and complete mobile app. Launch review is actually used to rate the app how do you feel about it.

Install the package

After creating a new flutter document move to pubspec.yaml file

Find Dependencies and then add the package name.

Note: you should add under cupertino_icons: ^0.1.2

Dependencies:

Launch_review: ^1.0.1

Install the packageTap Package get at right corner.

Import the package

Import the package under basic package

import ‘package:launch_review/launch_review.dart’;

Id’s for opening app store page

  • AndroidAppId: “com.iyaffle.rangoli”
  • iOSAppId: “585027354”

Create initstate

class _MyAppState extends State<MyApp> {

 @override

 initState() {

   super.initState();

Launch Review

For button

body: new Center(

child: new RaisedButton(

child: new Text("Rate App"),

onPressed: () {

LaunchReview.launch(

androidAppId: "com.iyaffle.rangoli",

iOSAppId: "585027354");

}

), //Center

), //RaisedButton

Launch Review for button

For icon

body: new Center(

child: new IconButton(

icon: Icon(Icons.rate_review, size: 60.0),

onPressed: () {

LaunchReview.launch(

androidAppId: "com.iyaffle.rangoli",

iOSAppId: "585027354");

}

), //Center

),//IconButton

Launch Review for icon