Paymint-Labs / Paymint

The Paymint Wallet is a secure and user friendly Bitcoin wallet
MIT License
74 stars 36 forks source link

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

Open BrianMwangi21 opened 3 years ago

BrianMwangi21 commented 3 years ago

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 commented 3 years ago

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