-
Notifications
You must be signed in to change notification settings - Fork 140
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
Some error on builder graphql #5
Comments
I am running with this error if you have found some solution please tell me. |
Hi, sorry for the late response. I'm not sure what's the problem is. If you have found any solution for that please do post it. And I'm planning to rewrite the whole app using rest API rather than GraphQl. |
For me there was an issue with flutter and the locked version of graphql. So I had to update the version. And there are many modifications in the API. Maybe that's the reason for the error. |
I have updated the code now. Now it mostly shouldn't throw any error. |
i resolved this issue and its 100% working just try it body:Query(
|
Hi,
I just got error when I tried to test the app, I got these error, any way to fix it. Thanks
const Mutation({
^^^^^^^^
lib/src/screens/settings/settings.dart:88:16: Error: The function expression type 'Widget Function(QueryResult, {Future Function() refetch})' isn't of expected type 'Widget Function(QueryResult, {dynamic Function(FetchMoreOptions) fetchMore, Future Function() refetch})'.
Change the type of the function expression or the context in which it is used.
builder: (res, {refetch}) {
^
lib/src/screens/settings/settings.dart:154:7: Error: No named parameter with the name 'onCompleted'.
onCompleted: (result) async {
^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/graphql_flutter-3.0.0/lib/src/widgets/mutation.dart:21:9: Context: Found this candidate, but the arguments don't match.
const Mutation({
^^^^^^^^
lib/src/screens/users/users.dart:160:7: Error: No named parameter with the name 'update'.
update: (Cache cache, QueryResult result) => cache,
^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/graphql_flutter-3.0.0/lib/src/widgets/mutation.dart:21:9: Context: Found this candidate, but the arguments don't match.
const Mutation({
^^^^^^^^
lib/src/screens/users/users.dart:202:16: Error: The function expression type 'Widget Function(QueryResult, {Future Function() refetch})' isn't of expected type 'Widget Function(QueryResult, {dynamic Function(FetchMoreOptions) fetchMore, Future Function() refetch})'.
Change the type of the function expression or the context in which it is used.
builder: (result, {refetch}) {
^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.
The text was updated successfully, but these errors were encountered: