If you have a an issue with your flutter application unable to use the andriod emulator, i found another way for previewing your application. Applications needed:
-OR-
flutter run -d web-server --web-port 8080
Required Applications:
- GitHub
- Flutter Package:
device_preview
Steps:
-
Push your code to and make sure it has access to github.io (Read to setup Quickstart for GitHub Pages - GitHub Docs )
-
Use the device_preview package to wrap your runApp; *
void main async { runApp(DevicePreview(builder: (context) => MyApp));}
*
Accessing Your App:
- Once your app is hosted on GitHub Pages, you can access and preview your app directly from the web.
- To view updated changes, simply push your latest code to GitHub, and the updates will be reflected online.