Through USB debugging: adb -s
reverse tcp:8081 tcp:8081 (To find device name : *adb devices*)
Here is what the above code is Doing:
1. We are importing the required libraries.
2. We are creating a class called App.
3. We are creating a method called build.
4. We are returning a Scaffold widget.
5. We are using the Scaffold widget to create a basic app with a title, some text and a button.
6. We are using the onPressed property of the RaisedButton to print a message to the console.
7. We are using the runApp method to run our app.