Skyost / RateMyApp

This plugin allows to kindly ask users to rate your app if custom conditions are met (eg. install time, number of launches, etc...).
https://pub.dev/packages/rate_my_app
MIT License
265 stars 104 forks source link

build breaks in flutter 3 #120

Closed daadu closed 2 years ago

daadu commented 2 years ago

Describe the bug build breaks in flutter 3

To Reproduce Steps to reproduce the behavior:

  1. flutter channel stable
  2. flutter upgrade
  3. cd example && flutter run
../../.pub-cache/hosted/pub.dartlang.org/rate_my_app-1.1.2/lib/src/widgets.dart:49:20: Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
 - 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../../flutter/flutter/packages/flutter/lib/src/widgets/binding.dart').
    WidgetsBinding.instance?.addPostFrameCallback((_) {
                   ^