How to get started on the app
How to get started on the app
flutter doctor
o This will check if Flutter is properly set up. You should follow any instructions
given by flutter doctor to resolve issues.
1. Set Up an Emulator:
o If you haven’t set up a virtual device yet, you can go to Device Manager in
Android Studio and create a new virtual device.
o Alternatively, you can connect a real Android device via USB, ensuring USB
Debugging is enabled.
2. Run the App:
o Click the Run button (green play icon) in Android Studio to build and run the app
on the selected emulator or device.
1. Set Breakpoints:
o Open main.dart you want to debug.
o Click on the line number gutter to set a breakpoint (a red dot will appear).
2. Start Debugging:
o Click on the Debug button (the bug icon next to the run button) to start the app in
debug mode.
o The app will pause when it reaches a breakpoint, allowing you to inspect variables
and the app's state.
3. Inspect Logs:
o In the Logcat window (View > Tool Windows > Logcat), you can inspect error
messages, warnings, or custom print() statements for further debugging.
If at any point you encounter issues, always check the output of flutter doctor in the terminal
to ensure all dependencies (SDK, tools, emulators) are properly set up.