Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Table of contents
1.
Introduction
1.1.
Why do we need DevTools?
1.2.
Installation of the Flutter Development Tools
1.3.
Starting the Application
1.4.
Start DevTools in Browser
1.5.
Flutter SDK
1.6.
Flutter Inspector
2.
Frequently Asked Questions
2.1.
What are Flutter dev tools?
2.2.
What software does the Flutter app use?
2.3.
What are Dart dev tools?
2.4.
What are dev tools?
2.5.
What software does the Flutter app use?
3.
Conclusion
Last Updated: Mar 27, 2024

Flutter Development Tools

Author Amit Singh
0 upvote
Master Python: Predicting weather forecasts
Speaker
Ashwin Goyal
Product Manager @

Introduction

DevTools is a suite of tools for developers that works on Flutter and Dart. It includes layout inspection tools, memory tools, performance tools, and basically all the debugging tools you might need to become a productive and efficient flutter developer, all in one place.

In this article, we will study Flutter Development Tools in detail.

Before we start, let us understand why do we need Development tools in practice? 

Why do we need DevTools?

Flutter Development Tools can be used for multiple operations. Some of these operations are:

  1. Inspection of the UI.
  2. Inspection of the App state.
  3. Diagnostic of junk performance of UI.
  4. Diagnostic of issues with flutter apps.
  5. CPU Profiling
  6. Network Profiling
  7. Debugging at Source-level
  8. Debugging memory issues in a Dart or Flutter application.
  9. Logs and information related to diagnostics of an application
  10. Analysis of code and size of the flutter application.

Installation of the Flutter Development Tools

Installation of Flutter Development Tools in Android Studio:

Step 1: We need to install the Flutter extension in Android Studio, in case you don’t already have it. To do that, Click Settings-> Plug-ins. Once the page is open, search for flutter and then install the plugin.

 

Step 2: Start by running a Flutter app. Ascertaining that the project is connected to a device and selecting the Run or Debug toolbar buttons.
 

Step 3: Now, DevTools can be launched from your flutter project's toolbar/menu. First, start your app, start DevTools by following the instructions below:

  1. Open DevTools toolbar action from Run view.
  2. DevTools toolbar action is visible in the Debug view. (if debugging)
  3. DevTools action can be used from the More Actions menu in the Inspector view in your flutter project.

Installation of Development Tools from Visual Studio Code

Step 1: We need to install the Dart extension in order to use Development Tools from VS code. And for debugging of Flutter Applications, Flutter extension is also required.

Step 2: For debugging, you start by running a Flutter app. Then go to Run -> Start Debugging (F5).

Step 3: The Dart Opens DevTools command appears in the VS Code command panel as soon as the debugging is started.

Installation of Development Tools from the command line

If you have flutter on your computer, you can run:

flutter pub global activate devtools

Launch the DevTools from the application server. Run the local web server. To do that runs the following commands:

flutter pub global run devtools  

On the command line, the output will look something like this:

Serving DevTools at http://127.0.0.1:9100

Starting the Application

Go to your application, open the simulator and then run using the following command: 

flutter run --observatory-port=9200

Now, we are connected to DevTools.

Start DevTools in Browser

Now search the following URL in the browser to start Dev Tools:

http://localhost:9100/?port=9200

Flutter SDK

To update Flutter SDK, we will use the following command:

flutter upgrade

And to upgrade Flutter packages, we will use the following command:

flutter packages upgrade

We could see the following result,

Running "flutter packages upgrade" in my_app... 7.4s

Flutter Inspector

Flutter Inspector is used to explore the flutter widget trees. If we want to achieve this, we will run the following command in the console,

flutter run --track-widget-creation

You can see an output as shown below −

Launching lib/main.dart on iPhone X in debug mode...
─Assembling Flutter resources... 3.6s
Compiling, linking and signing... 6.8s
Xcode build done. 14.2s
2,904ms (!)
To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
An Observatory debugger and profiler on iPhone X is available at: http://127.0.0.1:50399/
For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".

Now go to the url, http://127.0.0.1:50399/.

Frequently Asked Questions

What are Flutter dev tools?

DevTools is a suite of tools for developers that works on Flutter and Dart. It includes layout inspection tools, memory tools, performance tools, and basically all the debugging tools you might need to become a productive and efficient flutter developer, all in one place.

What software does the Flutter app use?

Flutter is Google's portable UI toolkit for crafting beautiful, natively compiled applications for mobile, web, and desktop from a single codebase. Flutter works with existing code, is used by developers and organizations around the world, and is free and open source.

What are Dart dev tools?

Dart Dev Tools is a suite of debugging and performance tools for Flutter and Dart. These tools are divided as part of the dart tool and interact with tools such as dart run, IDEs, and web dev.

What are dev tools?

DevTools is a collection of tools for a web developer that is built for developers directly into the browser "Google Chrome." These tools allow you to view and change/manipulate the DOM, change a page's styles (CSS) in a preview environment, and work with JavaScript by enabling you to debug, view messages, and run JavaScript code in the console.

What software does the Flutter app use?

Flutter is Google's portable UI toolkit for crafting beautiful, natively compiled applications for mobile, web, and desktop from a single codebase. Flutter works with existing code, is used by developers and organizations around the world, and is free and open source.

Get the tech career you deserve, faster!
Connect with our expert counsellors to understand how to hack your way to success
User rating 4.7/5
1:1 doubt support
95% placement record
Akash Pal
Senior Software Engineer
326% Hike After Job Bootcamp
Himanshu Gusain
Programmer Analyst
32 LPA After Job Bootcamp
After Job
Bootcamp

Conclusion

In this article, we have studied Flutter Development Tools. We hope that this article has provided you with the help to enhance your knowledge regarding flutter development tools and if you would like to learn more, check out our articles on flutter tableflutter tabbar and flutter forms.

Refer to our guided paths on Coding Ninjas Studio to learn more about DSA, Competitive Programming, JavaScript, System Design, etc. Enrol in our courses and refer to the mock test and problems available, Take a look at the interview experiences and interview bundle for placement preparations.

Do upvote our blog to help other ninjas grow.

Merry Learning!

Previous article
Flutter Deployment
Next article
Networking in Flutter using Dio
Live masterclass