in_app_review_play_store 0.0.2 copy "in_app_review_play_store: ^0.0.2" to clipboard
in_app_review_play_store: ^0.0.2 copied to clipboard

outdated

The Flutter plugin for Google Play In-App Review.

example/lib/main.dart

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 {
    await Future.delayed(Duration(seconds: 1));
    InAppReview.init();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: RaisedButton(
            child: Text("Launch In App Review"),
            onPressed: () {
              InAppReview.launch();
            },
          ),
        ),
      ),
    );
  }
}
14
likes
30
pub points
13%
popularity

Publisher

unverified uploader

The Flutter plugin for Google Play In-App Review.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on in_app_review_play_store