Open kirkcharlesniv opened 1 day ago
I tried a workaround by changing the time
and time_end
data types in VariablesWithTime
to int32
.
table VariablesWithTime {
time: int32;
time_end: int32;
interval: int32;
variables: [VariableWithValues];
}
then rebuild the generated file with flatc --dart -o lib/src/ weather_api.fbs
It works now and doesn’t seem to have any issues.
Int64 is not supported in the web environment. Directly changes the behavior of the generated code to read it in Int32 would work for now.
https://github.com/dart-lang/sdk/issues/10275 https://github.com/google/flatbuffers/issues/6978
This error occurs when using the
weather.request
functionEnvironment: Flutter Web, using Flutter 3.24.4 package version 2.0.2
Exception:
It is failing on the
weather_api_openmeteo_sdk_generated.dart
VariablesWithTime.time