in_app_comments 1.0.2 copy "in_app_comments: ^1.0.2" to clipboard
in_app_comments: ^1.0.2 copied to clipboard

PlatformAndroid

Flutter plugin for showing the In-App Comments Rating pop up on Huawei phones with Android. It makes it easy for users to rate your app.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

import 'package:in_app_comments/in_app_comments.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final _inAppCommentsPlugin = InAppComments();

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Comments Example'),
        ),
        body: Center(
          child: ElevatedButton(
              onPressed: () async {
                try {
                  await _inAppCommentsPlugin.requestComments();
                } on PlatformException catch (e) {
                  print(e.details);
                }
              },
              child: const Text('Request comment')),
        ),
      ),
    );
  }
}
2
likes
160
points
82
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin for showing the In-App Comments Rating pop up on Huawei phones with Android. It makes it easy for users to rate your app.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on in_app_comments