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

The argument type 'Material Function(BuildContext, dynamic)' can't be assigned to the parameter type 'Widget Function(BuildContext)' #6

Open
BrianMwangi21 opened this issue May 27, 2021 · 1 comment

Comments

@BrianMwangi21
Copy link

BrianMwangi21 commented May 27, 2021

Error on debug in Android studio.

Affected file : transactions_view.dart

Description :
error: The argument type 'Material Function(BuildContext, dynamic)' can't be assigned to the parameter type 'Widget Function(BuildContext)'. (argument_type_not_assignable at [paymint] lib/pages/transactions_view/transactions_view.dart:315)

Note:
I changed provider to version ^5.0.0 and modal_bottom_sheet to ^2.0.0

@BrianMwangi21
Copy link
Author

BrianMwangi21 commented May 27, 2021

Update:

I got it running without errors by changing line 315 in transactions_view.dart from this:
builder: (context, scrollController)

to:
builder: (context)

Not sure if that is the final solution or it breaks where scrollController is used

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

1 participant