我有一个错误:
Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: FormatException: Invalid radix-10 number (at character 1)
4.
^
. Error thrown null.it点temps= prefs.getString("temps")??"6";
但是我不知道为什么我有这个错误,??"6“强制有temps="6”,所以不可能有其他字母
temps= prefs.getString("temps")??"6";
temps_int= int.parse("$temps");发布于 2022-08-13 13:23:32
尝试使用.tryParse
temps_int= int.tryParse("${prefs.getString("temps")}")??6;https://stackoverflow.com/questions/73344652
复制相似问题