I have made my flutter project (windows platform) using android studio, I build the application than use inno setup to create a setup file but when I run the application after installation it runs in background not in foreground. I am creating windows based flutter application for the first time. I might miss some important thing like permission or something else please guide me how can I fix this issue. Also when I build the application and I run it from the release folder I works fine.
If you want to see any part of the code or anything else I can provide you. I don't know what are the relevant things to share.
I am using following dependencies(might be relevant):
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
motion_toast: ^2.7.8
sqflite_common_ffi: ^2.3.0+2
path_provider: ^2.1.1
intl: ^0.18.1
image_picker: ^1.0.4
get: ^4.6.6
I tried to build the setup by using winRar and inno setup but it still runs in background
Edit: Result of flutter doctor
PS C:\Users\ARcaN\Desktop\sharespace> flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.13.5, on Microsoft Windows [Version 10.0.19045.3516], locale en-PK)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.4)
[√] Android Studio (version 2022.3)
[√] VS Code (version 1.83.0)
[√] Connected device (4 available)
[√] Network resources
• No issues found!
flutter doctorresult?