[X] I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.
Current Behavior
The error occurs if I use a Google Map in the project and pass a function from the library that returns a LatLng as a parameter. Since the map definition in the project uses LatLng, when I try to use something in the project that returns this type of data, it interprets it as a different type, causing a type conflict. Log below:
lib/pages/home_page/home_page_widget.dart:140:69: Error: A value of type 'LatLng/1/' can't be assigned to a variable of type 'LatLng/2/?'.
'LatLng/1/' is from 'package:test_library_ydxklu/flutter_flow/lat_lng.dart' ('dependencies/test_library_ydxklu/lib/flutter_flow/lat_lng.dart').
'LatLng/2/' is from 'package:test/flutter_flow/lat_lng.dart' ('lib/flutter_flow/lat_lng.dart').
test_library_ydxklu_functions.testeLatLngLib()!,
Expected Behavior
I hope FlutterFlow can handle the data types received throughout the project so that I can use the custom code from my library as I previously did with Team Code. In its current state, using Libraries is unfeasible for us.
Steps to Reproduce
Create a new FF project.
Add a function to the project that returns a LatLng, and inside the function, include only return new LatLng(0, 0); for testing purposes.
In a project screen, add a Google Map and use the function as the map's parameter.
Duplicate the project, rename the created function in the duplicate, and then publish it as a library.
Open the initial project and import the library.
In the project, add a new map that uses the function from the library this time.
Enable the web platform in the project.
Run the local execution with Chrome.
You will see the error in the Device Logs panel.
Reproducible from Blank
[X] The steps to reproduce above start from a blank project.
Thank you so much for bringing this to our attention! I’ll make sure to forward it to our engineering team so they can work on a fix. We really appreciate your feedback!
Can we access your project?
Current Behavior
The error occurs if I use a Google Map in the project and pass a function from the library that returns a LatLng as a parameter. Since the map definition in the project uses LatLng, when I try to use something in the project that returns this type of data, it interprets it as a different type, causing a type conflict. Log below:
Expected Behavior
I hope FlutterFlow can handle the data types received throughout the project so that I can use the custom code from my library as I previously did with Team Code. In its current state, using Libraries is unfeasible for us.
Steps to Reproduce
LatLng
, and inside the function, include onlyreturn new LatLng(0, 0);
for testing purposes.Reproducible from Blank
Bug Report Code (Required)
ITESz/Hqx89gochK+s/1bvpqhQMnQzM5U+cFjtt+Zw8hfIznE5oLeM/CbhdLYtfnSn56OlaknnwKp8LTjvL9A8coBxaqbIBg1a5XQQHJfF+VbKa6PbiWSXElJJ9jfFSm4Z2jmhJRNfVqSXwl23GufvCrG3qCf9qOYwx5e6fDbOY=
Visual documentation
Environment
Additional Information
I identified the error occurring with the types:
LatLng
UploadedFile
But it may also be happening with other types.