I have coded an application that I have only optimized for the size of the phone (it is responsive on the phone). Now I want it not to be run or installed when the user runs it with the emulator on the computer?! is there a way I have made my software responsive with package sizer.
I did this so that the software does not rotate, But I don't know how to make it display only for android resolution.
void main() {
WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setPreferredOrientations(
[
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
],
);
runApp(const MyApp());
}