Problem when getting to save data type in double field

Hi, guys!

When making a call to an api call to save the values ​​in the data type below:

The percentage field that is defined as double, but in the api call the value received is int is giving an error.

(type 'int' is not a subtype of type 'double' in type cast

Made the calling action and defined a conditional that when the value is different from 0 it has the get and if it is equal to zero it has the value 0.00

It works in debug, but when compiling it doesn't work, before the last flutter update it worked like this, could you help me with the solution?

2
7 replies