post image

Flutter is Google’s mobile app SDK for creating high-quality native interfaces on iOS and Android. It’s used by some big companies such as Google itself, UNbank, Alibaba group. It offers many pre-existing components and you have the ability to customize as you like or create new ones. In order to do all this you first need to install flutter sdk as well as the dart. In this article you will learn how to run your flutter app on a physical device. Make your have installed flutter and added it to your path. If you got all of that then you are ready to create and run your project on a physical device.

Note: I’m using the operating system ubuntu and android studio in the article as well as an Android OS(phone). So in addition to the pre-requist above, you should install and set-up android studio and equally install the dart and flutter plugin then restart android studio.

Create a flutter project

1) After installing android launch it by running

android-studio

or by simply clicking on the app icon.

2) Choose Create a new flutter project. In the next screen select the type of flutter project you want to create. Here I will choose a flutter application. Then click on next and fill in the necessary information and click on finish. (Refer on this article if you want a detail process).

3) Flutter comes with a default app, you can go and edit before it so it you like you want before continuing reading. (In the tutorial I will not edit anything because my main goal is to show you how to run your flutter app on a physical device).

Running your app on a physical device

Enable Debug mode on physical device

1) Go to your phone setting.

settings

2) Select System->About phone.

system
about phone

3) Tap on the build number multiple times. (Consider tapping multiple times on the MIUI version if you are using a Redmi device)

build number

4) After multiple times, the developer option will be enabled.

you are now a developer

5) Then go back to system you will see Developer option, tap it

developer option

6) Look for and enable USB debugging . it will ask you to Allow USB Debugging press on OK button

allow usb debugging

7) Next, Enable Verify apps over USB

verify apps over usb

8) Finally change the USB Configuration to Picture transfer protocol or Media transfer protocol(On some phones you may not require this last step. Normally when you will plugged-in your phone our it detects if debug is activated automatically).

select usb configuration

Run your application

If you have successfully enable debug mode on your phone you can now go to the next step which is running the actual application.

Connect your phone to the computer using a USB cable. In the dialog that open select transfer files.

Go back to your project and select the device in which you want your app to run on(here it’s AMN LX1 (mobile)).

android device

Then click on the run button or open android studio terminal and run the command flutter run

flutter run
kevine@kevine-Latitude-E6430:~/AndroidStudioProjects/flutter_app$ flutter run
flutter default app

Bravo Finally you have run your app on your physical device you can know go on editing as long as you like you observe your changes right in your device.

Related article How to run flutter app on android emulator

Leave a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: