Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: The getter 'accentColor' isn't defined for the class 'ThemeData'. doesn't work from flutter_paystack #162

Open
kehindemary opened this issue May 12, 2023 · 3 comments

Comments

@kehindemary
Copy link

../.pub-cache/git/flutter_paystack-a4a33c3dd0a12f46d655a2e63d11e9f20ba82d01/lib/src/widgets/input/pin_field.dart:48:55: Error: The getter 'accentColor' isn't defined for the class 'ThemeData'.

  • 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('../programs/flutter/packages/flutter/lib/src/material/theme_data.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'accentColor'.
    BorderSide(color: Theme.of(context).accentColor, width: 1.0)),
@devfolorunso
Copy link

devfolorunso commented May 23, 2023

I'm having the same issue, have you been able to solve this @kehindemary

@psalmskalu
Copy link

This error is popping up everywhere as people upgrade their flutter to latest version. I have had to discontinue using Paystack plugin on three of my apps already. Can you guys fix this already.

Just change ThemeData's deprecated accentColor to secondary

@hardiklakhalani
Copy link

hardiklakhalani commented Jul 1, 2024

I'm using this one, hopefully temporary
definitelyme#1

  flutter_paystack:
    git:
      url: https://github.com/definitelyme/flutter_paystack.git
      ref: 3faac4c999314bad4e61860006136926e0bc982e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants