Debug School

rakesh kumar
rakesh kumar

Posted on

Flutter: how to run flutter using command

Run following commands
Step1 Verify Flutter sees the emulator

flutter devices
flutter emulator
Enter fullscreen mode Exit fullscreen mode

output

Step2 Start the Emulator (using Flutter command)

Use this command:

flutter emulators --launch Pixel_6
Enter fullscreen mode Exit fullscreen mode

or:

flutter emulators --launch Pixel_8
Enter fullscreen mode Exit fullscreen mode

Step 3 — Run Flutter app on emulator

flutter run
Enter fullscreen mode Exit fullscreen mode

=========================================

Flutter run key commands.

r Hot reload.
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

Top comments (0)