我正在尝试将双精度值(例如 9.5)转换为相应的小时/分钟值(例如 9.30)。我还想使用该值执行计算,但将其像时间值一样处理(例如,将 23 和 2 相加应得到 1,因为小时数应以 24 小时为单位)。
我已经尝试将该值转换为 DateTime,但它显示“日期格式无效”。
我在 AndroidManifest 中添加了这 2 行。
<category android:name="android.intent.action.DEFAULT" />
<category android:name="android.intent.action.HOME" />
Run Code Online (Sandbox Code Playgroud)
现在我收到此错误,即使在恢复更改后也是如此。
Error running com.example.flutter_launcher. Default activity not found
Unable to read manifest info from D:\src\flutter_launcher\build\app\outputs\apk\app.apk.
No application found for TargetPlatform.android_x86.
Is your project missing an android\app\src\main\AndroidManifest.xml?
Consider running "flutter create ." to create one.
Run Code Online (Sandbox Code Playgroud)
我运行了“flutter create”。没有运气。