devicesimulator library


Add the DeviceSimulator at the root of your widget tree, right below your App widget. DeviceSimulator will override the devices MediaQueryData and draw simulated device frames for different devices. It will also simulate the iOS or Android status bars (and on Android bottom navigation). You can disable the DeviceSimulator by setting the enable property to false, this is very much recommended when you are deploying the app.