Closed EnziinSystem closed 7 months ago
You can check the defaultTargetPlatform from Flutter and just wrap that code in an if
block.
We've been doing this for a long time in one of our apps that's running on mobile and desktop and it has worked flawlessly.
This is the answer
You can check the defaultTargetPlatform from Flutter and just wrap that code in an
if
block.We've been doing this for a long time in one of our apps that's running on mobile and desktop and it has worked flawlessly.
I already know that the current project only supports Windows, Linux and MacOS and does not support mobile platforms.
However, because it has changed so much source code as below, the application cannot guarantee cross-platform capabilities.
The error message on Android:
If I want to use the mobile application then I have to clone the source code project and remove the windows_manager package.
This takes away the cross-platform capabilities of the Flutter app.