Search code examples
android-studiofluttervisual-studio-coderate

how to change back button on RateMyAppNoButton in flutter


i'm using https://pub.dev/packages/rate_my_app but i can not change back btn fontSize or color. how can i do so?

final Widget cancelButton = RateMyAppNoButton(
                _rateMyApp,
                text: 'back',

                callback: () => setState(() {}),
              );

Solution

  • That's probably because the class RateMyAppNoButton doesn't allow much customising.

    Try using standard Flutter buttons e.g.

    final Widget cancelButton = RaisedButton(
                onPressed: () {},
                child: const Text('Cancel', style: TextStyle(fontSize: 20)),
              );