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 argument type 'double? Function(dynamic)' can't be assigned to the parameter type 'ScalarFunction'. #6

Open
ksahbaz opened this issue Dec 27, 2022 · 1 comment

Comments

@ksahbaz
Copy link

ksahbaz commented Dec 27, 2022

When I add the package to import section:
import 'package:flutter_geopackage/flutter_geopackage.dart';

I get this error:

/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_geopackage-0.6.0+1/lib/com/hydrologis/flutter_geopackage/geopackage.dart:1070:19: Error: The argument type 'double? Function(dynamic)' can't be assigned to the parameter type 'ScalarFunction'.
- 'ScalarFunction' is from 'package:dart_hydrologis_db/web_stubs.dart' ('/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/dart_hydrologis_db-1.0.0+1/lib/web_stubs.dart').
package:dart_hydrologis_db/web_stubs.dart:1
        function: (args) {
                  ^

/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_geopackage-0.6.0+1/lib/com/hydrologis/flutter_geopackage/geopackage.dart:1084:19: Error: The argument type 'double? Function(dynamic)' can't be assigned to the parameter type 'ScalarFunction'.
- 'ScalarFunction' is from 'package:dart_hydrologis_db/web_stubs.dart' ('/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/dart_hydrologis_db-1.0.0+1/lib/web_stubs.dart').
package:dart_hydrologis_db/web_stubs.dart:1
        function: (args) {
                  ^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_geopackage-0.6.0+1/lib/com/hydrologis/flutter_geopackage/geopackage.dart:1098:19: Error: The argument type 'double? Function(dynamic)' can't be assigned to the parameter type 'ScalarFunction'.
- 'ScalarFunction' is from 'package:dart_hydrologis_db/web_stubs.dart' ('/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/dart_hydrologis_db-1.0.0+1/lib/web_stubs.dart').
package:dart_hydrologis_db/web_stubs.dart:1
        function: (args) {

                  ^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_geopackage-0.6.0+1/lib/com/hydrologis/flutter_geopackage/geopackage.dart:1112:19: Error: The argument type 'double? Function(dynamic)' can't be assigned to the parameter type 'ScalarFunction'.
- 'ScalarFunction' is from 'package:dart_hydrologis_db/web_stubs.dart' ('/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/dart_hydrologis_db-1.0.0+1/lib/web_stubs.dart').
package:dart_hydrologis_db/web_stubs.dart:1
        function: (args) {

                  ^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_geopackage-0.6.0+1/lib/com/hydrologis/flutter_geopackage/geopackage.dart:1126:19: Error: The argument type 'bool? Function(dynamic)' can't be assigned to the parameter type 'ScalarFunction'.
- 'ScalarFunction' is from 'package:dart_hydrologis_db/web_stubs.dart' ('/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/dart_hydrologis_db-1.0.0+1/lib/web_stubs.dart').
package:dart_hydrologis_db/web_stubs.dart:1
        function: (args) {

                  ^

I don't use anything from the package when I get the error. I just import.

@moovida
Copy link
Owner

moovida commented Jan 5, 2023

In which environment are you working? It seems it is pulling the web stubs

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

2 participants