rate_app_dialog 0.1.1+1 copy "rate_app_dialog: ^0.1.1+1" to clipboard
rate_app_dialog: ^0.1.1+1 copied to clipboard

discontinued
outdated

This package is designed to increase the ratings in your app, with bad review filter, find out what's bad and get more positive reviews!

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      debugShowCheckedModeBanner: false,
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  RateAppDialog rateAppDialog;

  void _incrementCounter() {
    setState(() {
      _counter++;
    });
  }

  @override
  void initState() {
    // TODO: implement initState
    super.initState();
    rateAppDialog = RateAppDialog(
        context: context,
        afterStarRedirect: false,
        minimeRequestToShow: 4,
        minimeRateIsGood: 4
    );
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text(
              'You have pushed the button this many times:',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headline4,
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () {
          rateAppDialog?.requestRate();
          _incrementCounter();
        },
        tooltip: 'Increment',
        child: Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}
14
likes
0
pub points
0%
popularity

Publisher

unverified uploader

This package is designed to increase the ratings in your app, with bad review filter, find out what's bad and get more positive reviews!

Homepage

License

unknown (LICENSE)

Dependencies

flutter, shared_preferences

More

Packages that depend on rate_app_dialog