Notification texts go here Contact Us Buy Now!

Flutter Flow - Custom Action Not working on Android APK

Answer ( For future, if anyone encounters same problem )

I appreciate all the efforts to help, but I managed to find the source of the problem, which was in the following code:

String shelfGuageMap = '{"14": 2, "16": 1.5, "20": 1}';
String angleGuageMap = '{"14": 175, "16": 150, "18": 130}';
Map<String, dynamic> shelfGuages = json.decode(shelfGuageMap);
Map<String, dynamic> angleGuages = json.decode(angleGuageMap);

Apparently, Flutter Flow has difficulty converting Strings to Maps on Android, at least in my case. I modified the logic as follows:

String shelfGuageList = '["11:3", "12:2.5", "13:2.5", "14:2"]';
String angleGuageList = '["11:140", "12:150", "13:160", "14:175"]';
List<String> shelfGuageToList = json.decode(shelfGuageList).cast<String>();
List<String> angleGuageToList = json.decode(angleGuageList).cast<String>();

Although the reason for this issue remains unclear, the code now functions properly on all devices.

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.