[{"data":1,"prerenderedAt":2443},["ShallowReactive",2],{"navigation_docs_en":3,"-en-flutter-for-jobseekers-installing-flutter":95,"-en-flutter-for-jobseekers-installing-flutter-surround":2438},[4,16],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":15},"Getting Started","i-lucide-rocket","\u002Fen\u002Fgetting-started","en\u002F1.getting-started",[10],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fen\u002Fgetting-started\u002Fintroduction","en\u002F1.getting-started\u002F1.introduction","i-lucide-house",false,{"title":17,"icon":18,"path":19,"stem":20,"children":21,"page":15},"Flutter for Jobseekers","i-lucide-briefcase","\u002Fen\u002Fflutter-for-jobseekers","en\u002F2.flutter-for-jobseekers",[22,27,32,37,42,47,52,57,62,67,72,77,82,86,91],{"title":23,"path":24,"stem":25,"icon":26},"Introduction to Flutter","\u002Fen\u002Fflutter-for-jobseekers\u002Fintroduction-to-flutter","en\u002F2.flutter-for-jobseekers\u002F1.introduction-to-flutter","i-lucide-history",{"title":28,"path":29,"stem":30,"icon":31},"Market Opportunities for Flutter Developers","\u002Fen\u002Fflutter-for-jobseekers\u002Fmarket-opportunities","en\u002F2.flutter-for-jobseekers\u002F2.market-opportunities","i-lucide-trending-up",{"title":33,"path":34,"stem":35,"icon":36},"Installing Flutter and Configuring Your IDE","\u002Fen\u002Fflutter-for-jobseekers\u002Finstalling-flutter","en\u002F2.flutter-for-jobseekers\u002F3.installing-flutter","i-lucide-wrench",{"title":38,"path":39,"stem":40,"icon":41},"Introduction to Widgets","\u002Fen\u002Fflutter-for-jobseekers\u002Fintroduction-to-widgets","en\u002F2.flutter-for-jobseekers\u002F4.introduction-to-widgets","i-lucide-blocks",{"title":43,"path":44,"stem":45,"icon":46},"Handling User Input","\u002Fen\u002Fflutter-for-jobseekers\u002Fhandling-user-input","en\u002F2.flutter-for-jobseekers\u002F5.handling-user-input","i-lucide-text-cursor-input",{"title":48,"path":49,"stem":50,"icon":51},"Using 3rd Party Libraries and External Assets","\u002Fen\u002Fflutter-for-jobseekers\u002Fusing-packages-and-assets","en\u002F2.flutter-for-jobseekers\u002F6.using-packages-and-assets","i-lucide-package",{"title":53,"path":54,"stem":55,"icon":56},"Working with APIs and Asynchronous Operations","\u002Fen\u002Fflutter-for-jobseekers\u002Fworking-with-apis-and-async","en\u002F2.flutter-for-jobseekers\u002F7.working-with-apis-and-async","i-lucide-cloud-download",{"title":58,"path":59,"stem":60,"icon":61},"Navigation and Routing","\u002Fen\u002Fflutter-for-jobseekers\u002Fnavigation-and-routing","en\u002F2.flutter-for-jobseekers\u002F8.navigation-and-routing","i-lucide-route",{"title":63,"path":64,"stem":65,"icon":66},"State Management and the BLoC","\u002Fen\u002Fflutter-for-jobseekers\u002Fstate-management-and-bloc","en\u002F2.flutter-for-jobseekers\u002F9.state-management-and-bloc","i-lucide-boxes",{"title":68,"path":69,"stem":70,"icon":71},"Reactivity and Platform-Specific Considerations","\u002Fen\u002Fflutter-for-jobseekers\u002Freactivity-and-platforms","en\u002F2.flutter-for-jobseekers\u002F910.reactivity-and-platforms","i-lucide-monitor-smartphone",{"title":73,"path":74,"stem":75,"icon":76},"Debugging, Troubleshooting, and Performance Considerations","\u002Fen\u002Fflutter-for-jobseekers\u002Fdebugging-troubleshooting-performance","en\u002F2.flutter-for-jobseekers\u002F911.debugging-troubleshooting-performance","i-lucide-bug",{"title":78,"path":79,"stem":80,"icon":81},"Creating Your First Application","\u002Fen\u002Fflutter-for-jobseekers\u002Fcreating-your-first-application","en\u002F2.flutter-for-jobseekers\u002F912.creating-your-first-application","i-lucide-cloud-sun",{"title":83,"path":84,"stem":85,"icon":18},"Finding Flutter Jobs","\u002Fen\u002Fflutter-for-jobseekers\u002Ffinding-flutter-jobs","en\u002F2.flutter-for-jobseekers\u002F913.finding-flutter-jobs",{"title":87,"path":88,"stem":89,"icon":90},"Preparing for and Succeeding in the Job Interview","\u002Fen\u002Fflutter-for-jobseekers\u002Fpreparing-for-the-job-interview","en\u002F2.flutter-for-jobseekers\u002F914.preparing-for-the-job-interview","i-lucide-messages-square",{"title":92,"path":93,"stem":94,"icon":61},"Your Road Ahead","\u002Fen\u002Fflutter-for-jobseekers\u002Fyour-road-ahead","en\u002F2.flutter-for-jobseekers\u002F915.your-road-ahead",{"id":96,"title":33,"body":97,"description":2431,"extension":2432,"links":2433,"meta":2434,"navigation":2435,"path":34,"seo":2436,"stem":35,"__hash__":2437},"docs_en\u002Fen\u002F2.flutter-for-jobseekers\u002F3.installing-flutter.md",{"type":98,"value":99,"toc":2395},"minimark",[100,115,119,124,183,186,193,200,1029,1032,1049,1052,1063,1785,1789,1799,1806,1824,1830,1888,1895,1913,1939,1942,1955,1958,1976,1982,1986,2003,2006,2009,2012,2280,2284,2291,2302,2306,2327,2336,2340,2391],[101,102,103,107],"u-page-hero",{},[104,105,33],"template",{"v-slot:title":106},"",[104,108,109,110,114],{"v-slot:description":106},"Congratulations on making it this far! By now, you should have a firm understanding of what Flutter is and what kind of problems it seeks to solve. Now, it is time to get our ",[111,112,113],"strong",{},"development environment"," set up and ready to write some code!",[116,117,118],"p",{},"Do not worry if this sounds daunting. This chapter will guide you through the process and try to answer any questions which may arise along the way. By the end of this chapter, you will have a development environment set up to write your very first app. As a bonus, you will even compile the default sample app, which ships with Flutter!",[120,121,123],"h2",{"id":122},"chapter-overview","Chapter overview",[125,126,127,151,156],"card-group",{},[128,129,132],"card",{"icon":130,"title":131},"i-lucide-list","Structure",[133,134,135,139,142,145,148],"ul",{},[136,137,138],"li",{},"Getting started on Windows",[136,140,141],{},"Getting started on macOS",[136,143,144],{},"Installing and configuring Visual Studio Code",[136,146,147],{},"Building and running your first Flutter application",[136,149,150],{},"Briefly exploring the default Flutter application",[128,152,155],{"icon":153,"title":154},"i-lucide-target","Objectives","After completing this chapter, you will have Flutter installed on your computer and have configured your development environment to write apps using Flutter. You will learn how to create a new Flutter project, then run your new Flutter project in an Android Emulator on your computer.",[128,157,160],{"icon":158,"title":159},"i-lucide-toolbox","Tools",[133,161,162,165,168,171,174,177,180],{},[136,163,164],{},"Git",[136,166,167],{},"Windows PowerShell (Windows only)",[136,169,170],{},"Terminal (macOS only)",[136,172,173],{},"Visual Studio Code",[136,175,176],{},"Visual Studio (Windows only)",[136,178,179],{},"Xcode (macOS only)",[136,181,182],{},"Android Studio",[120,184,138],{"id":185},"getting-started-on-windows",[116,187,188,189,192],{},"To develop Flutter applications on Windows, we are going to need to install several tools and utilities. We will tackle this one by one, and when we are done you should have everything you need to get started writing apps. The tools we will be installing are ",[111,190,191],{},"PowerShell, Git, Visual Studio, Android Studio, and Flutter",".",[194,195,196,197,192],"note",{},"This guide assumes you are running ",[111,198,199],{},"Windows 10 or Windows 11",[201,202,204,209,224,243,246,250,256,276,307,314,319,323,328,342,354,357,372,379,385,389,393,407,425,435,441,445,452,456,464,477,488,499,513,520,530,536,540,544,567,578,610,632,642,648,652,656,684,690,694,710,721,729,735,741,745,760,764,788,797,816,827,844,847,851,857,860,869,876,882,891,897,903,907,926,932,942,948,952,958,962,965,974,981,990,996,1000,1003,1012,1018],"steps",{"level":203},"3",[205,206,208],"h3",{"id":207},"enable-windows-developer-mode","Enable Windows Developer Mode",[116,210,211,214,215,218,219,223],{},[111,212,213],{},"Windows Developer Mode"," needs to be enabled before we can begin developing applications. To do this, you will first need to go to your system settings. Whether you are using Windows 10 or Windows 11, the fastest way is to open the ",[111,216,217],{},"Start"," menu and type ",[220,221,222],"code",{},"settings",". This will open the Windows settings application.",[116,225,226,227,230,231,234,235,238,239,242],{},"From there, you can either search for ",[220,228,229],{},"developer mode"," or navigate to ",[111,232,233],{},"Update & Security"," (on Windows 10) or ",[111,236,237],{},"Privacy & security"," (on Windows 11). On Windows 10, you will need to go to the ",[111,240,241],{},"For developers"," tab, and then on both versions of Windows, you will need to toggle the switch for Developer Mode to on.",[116,244,245],{},"Windows will likely ask you to confirm this change by presenting you with a security control dialog. Confirming the change will enable developer mode, and then you can close the Settings application.",[205,247,249],{"id":248},"install-powershell","Install PowerShell",[116,251,252,255],{},[111,253,254],{},"PowerShell"," is a command line that we will be using throughout this book. Windows 10 and 11 ships with older versions of PowerShell, which we will need to upgrade to the latest version.",[116,257,258,259,267,268,272,273,275],{},"To get started, head over to ",[111,260,261],{},[262,263,264],"a",{"href":264,"rel":265},"https:\u002F\u002Faka.ms\u002Fpowershell-release?tag=stable",[266],"nofollow"," and scroll down to the assets section. Look for PowerShell-",[269,270,271],"em",{},"x.y.z","-win-x64.msi, where ",[269,274,271],{}," is the latest version available. Download the file and run through the installation process. The default install options are sufficient for us, and the installation is very straightforward.",[116,277,278,279,218,281,283,284,287,288,291,292,294,295,298,299,302,303,306],{},"To verify that PowerShell is installed, click your ",[111,280,217],{},[220,282,254],{},". There may be several versions installed, such as ",[111,285,286],{},"Windows PowerShell",", ",[111,289,290],{},"Windows PowerShell ISE",", and ",[111,293,254],{}," v ",[111,296,297],{},"(x64)"," where ",[269,300,301],{},"v"," is the major version of PowerShell matching the file you just installed. At the time of writing, the latest major version of PowerShell is version 7. If your search looks like the following screenshot(s) (",[269,304,305],{},"figure 3.1","), you have successfully installed PowerShell.",[116,308,309],{},[310,311],"img",{"alt":312,"src":313},"Figure 3.1: PowerShell in the Windows 10 (left) and Windows 11 (right) Start Menu","\u002Fimages\u002Fflutter-for-jobseekers\u002Ffigure-3-1.png",[315,316,317],"blockquote",{},[116,318,312],{},[205,320,322],{"id":321},"install-git","Install Git",[116,324,325,327],{},[111,326,164],{}," is a source control manager used to manage source code. It helps us to maintain a history of changes that we can refer to in case things go awry or we need more information about what changes were made, by whom, and for what reason. Furthermore, it is a crucial utility for working on a software development team, as it enables multiple developers to collaborate on a single codebase.",[116,329,330,331,337,338,341],{},"To get started with Git, head over to ",[111,332,333],{},[262,334,335],{"href":335,"rel":336},"https:\u002F\u002Fgit-scm.com\u002Fdownload\u002Fwin",[266]," and click the link at the top of the page that says, ",[111,339,340],{},"Click here to download",". Once downloaded, run through the installer.",[343,344,345,346,349,350,353],"tip",{},"For the most part, the default install options are fine. However, it is recommended to change the option for the default branch name when given the option. Click the ",[111,347,348],{},"Override the default branch name for new repositories"," option when presented. Accept the new default value of ",[220,351,352],{},"main"," and click next. The remaining options can all be left as their defaults.",[116,355,356],{},"Once you are finished installing Git, you can test to ensure it is installed properly by running PowerShell and typing:",[358,359,363],"pre",{"className":360,"code":361,"language":362,"meta":106,"style":106},"language-powershell shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","git --version\n","powershell",[220,364,365],{"__ignoreMap":106},[366,367,370],"span",{"class":368,"line":369},"line",1,[366,371,361],{},[116,373,374,375,378],{},"If there are no errors, it will print the version of Git that you just installed and exit. If successful, it should look something like the following (",[269,376,377],{},"figure 3.2","):",[116,380,381],{},[310,382],{"alt":383,"src":384},"Figure 3.2: Successfully verifying that Git has been installed on Windows 10","\u002Fimages\u002Fflutter-for-jobseekers\u002Ffigure-3-2.png",[315,386,387],{},[116,388,383],{},[205,390,392],{"id":391},"install-visual-studio","Install Visual Studio",[116,394,395,398,399,402,403,406],{},[111,396,397],{},"Microsoft Visual Studio"," is an ",[111,400,401],{},"integrated development environment (IDE)"," used by many developers to create all sorts of different types of software. While we will not be using it to develop our Flutter applications, we will be installing it to gain access to the tools it provides to us, including its ",[111,404,405],{},"compiler",". A compiler is a piece of software that converts our source code into machine code.",[116,408,409,410,416,417,420,421,424],{},"To start, head over to ",[111,411,412],{},[262,413,414],{"href":414,"rel":415},"https:\u002F\u002Fvisualstudio.microsoft.com\u002F",[266]," and look for the ",[111,418,419],{},"Download Visual Studio"," button. As you hover over it, a dropdown will appear. Select the ",[111,422,423],{},"Community edition",". Once downloaded, run the installer which will install and launch the Visual Studio Installer.",[116,426,427,428,431,432,378],{},"The Visual Studio Installer will prompt you for a workload to install alongside the IDE itself. The workload you will need to select is the ",[111,429,430],{},"Desktop development with C++"," workload (",[269,433,434],{},"figure 3.3",[116,436,437],{},[310,438],{"alt":439,"src":440},"Figure 3.3: Selecting the correct workload during the Visual Studio install","\u002Fimages\u002Fflutter-for-jobseekers\u002Ffigure-3-3.png",[315,442,443],{},[116,444,439],{},[116,446,447,448,451],{},"There is an option to ",[111,449,450],{},"start after installation"," while Visual Studio is installed. Since we will not be using Visual Studio itself, there is no need to run it. Feel free to uncheck this box.",[205,453,455],{"id":454},"install-android-studio","Install Android Studio",[116,457,458,460,461,192],{},[111,459,182],{}," is another IDE that is used to write Android applications. We will not be using it as our development environment, but we do want some of the tools that it provides, including the Android SDK, command line tools, and the ",[111,462,463],{},"Android Virtual Device (AVD)",[116,465,466,467,473,474,476],{},"First, head over to ",[111,468,469],{},[262,470,471],{"href":471,"rel":472},"https:\u002F\u002Fdeveloper.android.com\u002Fstudio",[266]," and download the latest version of Android Studio. By default, the installer will have the option to install the ",[111,475,463],{}," selected. Since we will be using the AVD extensively as we develop and test our applications, ensure that the option to install the Android Virtual Device remains selected.",[478,479,480,481,484,485,192],"warning",{},"The Android Virtual Device requires a processor which supports ",[111,482,483],{},"virtualization",". If you find yourself unable to install or use the AVD, it is likely that your processor does not support virtualization. In that instance, you can skip the instructions throughout this book that pertain to the AVD directly and instead run your application using the ",[111,486,487],{},"Windows desktop mode",[116,489,490,491,494,495,498],{},"Once Android Studio is finished installing, be sure to launch it. The first prompt we are presented with will ask us if we want to import settings. Since we do not have any to import, we will select ",[111,492,493],{},"Do not import settings"," and click ",[111,496,497],{},"OK",". Next, we are greeted with the welcome screen. There will probably be an update to install, which a notification at the bottom of the window will inform you of. Install the update, and when prompted, restart Android Studio to apply the changes.",[116,500,501,502,505,506,508,509,512],{},"Once Android Studio is finished updating and has been restarted, you will be back at the welcome screen. Click ",[111,503,504],{},"Next"," to move to the install type screen. Choose the standard option and click ",[111,507,504],{},". You will be offered the option to choose between a light and dark theme, so choose one according to your preferences. The next screen will ask you to verify your settings, which should all be fine. Click ",[111,510,511],{},"Finish",". At this point, several components will be downloaded to complete the process.",[116,514,515,516,519],{},"Once all the components have been downloaded, you will be at a new welcome screen. You will need to create a new project to get to the main application window where we will install and configure the rest of the tools we need. The project you create does not matter, so do not stress too much over it. Just choose ",[111,517,518],{},"New"," and click through the default options.",[116,521,522,523,526,527,378],{},"Android Studio will create and open the new project, then download several components in the background. There will be a status bar at the bottom of the window which will update you on its progress, as well as a notice at the top that says ",[111,524,525],{},"Gradle project sync in progress",". Wait for a while as this process finishes. Once everything has finished, you should see a window that looks like the following (",[269,528,529],{},"figure 3.4",[116,531,532],{},[310,533],{"alt":534,"src":535},"Figure 3.4: The Android Studio main window","\u002Fimages\u002Fflutter-for-jobseekers\u002Ffigure-3-4.png",[315,537,538],{},[116,539,534],{},[205,541,543],{"id":542},"install-the-android-sdk-tools","Install the Android SDK tools",[116,545,546,547,550,551,562,563,566],{},"Next, look for the ",[111,548,549],{},"SDK Manager"," icon (",[310,552],{"alt":553,"src":554,":zoom":555,"className":556,"height":560,"width":561},"SDK Manager icon","\u002Fimages\u002Fflutter-for-jobseekers\u002Ficon-sdk-manager.png","false",[557,558,559],"inline","m-0","align-text-bottom",21,23,") in the upper right-hand corner. Clicking this will open the settings window to the Android SDK section. On the ",[111,564,565],{},"SDK Platforms"," tab, the latest version of Android's SDK will already be installed. This is entirely sufficient for our purposes; however, if you wish to target an older or newer version of Android, this is where you would come to download the SDK.",[116,568,569,570,573,574,577],{},"Now, move over to the ",[111,571,572],{},"SDK Tools"," tab (",[269,575,576],{},"figure 3.5","). Here, we want to make sure that the check boxes are checked for:",[133,579,580,585,590,595,600,605],{},[136,581,582],{},[111,583,584],{},"Android SDK Build-Tools",[136,586,587],{},[111,588,589],{},"NDK (side by side)",[136,591,592],{},[111,593,594],{},"Android SDK command-line tools",[136,596,597],{},[111,598,599],{},"CMake",[136,601,602],{},[111,603,604],{},"Android Emulator",[136,606,607],{},[111,608,609],{},"Android SDK Platform-Tools",[116,611,612,613,616,617,620,621,624,625,628,629,631],{},"If you have an ",[111,614,615],{},"Intel"," processor, you will also want to install the ",[111,618,619],{},"Intel x86 Emulator Accelerator (HAXM Installer)",", as this will improve the speed and performance of your Android Emulator. Likewise, if you have an ",[111,622,623],{},"AMD"," processor, you will want to install the ",[111,626,627],{},"Android Emulator Hypervisor Driver for AMD Processors",". If your processor does not have support for virtualization, expect this to fail. Click ",[111,630,497],{},", read and accept the license agreements, and allow the process to complete.",[194,633,634,637,638,641],{},[111,635,636],{},"Corrected:"," Intel has retired HAXM — v7.8.0 was its last release, and the project was archived on January 28, 2023 (Intel, 2023). Starting from emulator 36.2.x.x, the Android Emulator no longer uses HAXM; on Windows, Google recommends the Microsoft-supplied ",[111,639,640],{},"Windows Hypervisor Platform (WHPX)"," instead. The Android Emulator hypervisor driver (the AMD option above) will be sunset on December 31, 2026 (Android Developers, n.d.-a).",[116,643,644],{},[310,645],{"alt":646,"src":647},"Figure 3.5: Choosing the necessary components to install in Android Studio","\u002Fimages\u002Fflutter-for-jobseekers\u002Ffigure-3-5.png",[315,649,650],{},[116,651,646],{},[205,653,655],{"id":654},"add-the-platform-tools-to-the-path","Add the platform tools to the Path",[116,657,658,659,218,661,664,665,668,669,672,673,676,677,680,681,378],{},"Next, we need to configure Windows so that it knows where to find the tools we just installed. Open your ",[111,660,217],{},[220,662,663],{},"Edit the system environment variables"," then hit ",[269,666,667],{},"Enter",". This will open the ",[111,670,671],{},"System Properties"," window where you will find a button near the bottom that says, ",[111,674,675],{},"Environment Variables…",". Tapping this button will open the ",[111,678,679],{},"Environment Variables"," window (",[269,682,683],{},"figure 3.6",[116,685,686],{},[310,687],{"alt":688,"src":689},"Figure 3.6: The Environment Variables window","\u002Fimages\u002Fflutter-for-jobseekers\u002Ffigure-3-6.png",[315,691,692],{},[116,693,688],{},[116,695,696,697,699,700,703,704,707,708,192],{},"In the ",[111,698,679],{}," window, look at the upper half where the user variables are. Click on the ",[111,701,702],{},"Path"," variable (highlighted in the preceding screenshot), and then press the ",[111,705,706],{},"Edit…"," button. A new window will appear with a list of filesystem locations in it. We need to add the Android SDK platform tools to this list, so click ",[111,709,518],{},[116,711,712,713,716,717,720],{},"The path we need to add can be found back in Android Studio in the SDK Manager. At the top of the SDK Manager window, you will find ",[111,714,715],{},"Android SDK Location"," with a filesystem path next to it. Copy this path and paste it into the environment variables window. At the end of the path, add ",[220,718,719],{},"\\platform-tools",". The full path should resemble the following:",[358,722,727],{"className":723,"code":725,"language":726,"meta":106},[724],"language-text","C:\\Users\\\u003Cuser>\\AppData\\Local\\Android\\Sdk\\platform-tools\n","text",[220,728,725],{"__ignoreMap":106},[116,730,731,732,378],{},"If you have done this correctly, you should see the path in the list of environment variables, such as in the following screenshot (",[269,733,734],{},"figure 3.7",[116,736,737],{},[310,738],{"alt":739,"src":740},"Figure 3.7: The Android SDK platform tools have been added to the Path environment variable","\u002Fimages\u002Fflutter-for-jobseekers\u002Ffigure-3-7.png",[315,742,743],{},[116,744,739],{},[116,746,747,748,750,751,753,754,756,757,759],{},"If everything looks good, click ",[111,749,497],{}," to close the edit environment variables window, then click ",[111,752,497],{}," again to close the environment variables window. Finally, click ",[111,755,497],{}," to close the ",[111,758,671],{}," window.",[205,761,763],{"id":762},"create-an-android-virtual-device","Create an Android Virtual Device",[116,765,766,767,550,770,777,778,550,780,783,784,787],{},"Back in Android Studio, we are going to create an Android Virtual Device (AVD), which we will be using to test and debug our code. Look for the ",[111,768,769],{},"AVD Manager",[310,771],{"alt":772,"src":773,":zoom":555,"className":774,"height":775,"width":776},"AVD Manager icon","\u002Fimages\u002Fflutter-for-jobseekers\u002Ficon-avd-manager.png",[557,558,559],20,18,") next to where you found the ",[111,779,549],{},[310,781],{"alt":553,"src":554,":zoom":555,"className":782,"height":560,"width":561},[557,558,559],"), in the upper right-hand corner. At this point, you will be presented with a window that has a ",[111,785,786],{},"Create Virtual Device"," button on it. Click the button to begin.",[194,789,790,792,793,796],{},[111,791,636],{}," in current versions of Android Studio, AVDs are created and managed in the ",[111,794,795],{},"Device Manager"," (Android Developers, n.d.-b).",[116,798,799,800,803,804,806,807,810,811,813,814,192],{},"The first thing we need to do is choose what device to emulate. Select ",[111,801,802],{},"Pixel 4"," from the list of devices then click ",[111,805,504],{},". Next, you will be prompted to choose which version of Android you want to run on this device. Click the ",[111,808,809],{},"Download"," link next to the release name in the list of releases for the latest stable release at the top of the list. When the download is complete, click the ",[111,812,511],{}," button, then click ",[111,815,504],{},[116,817,818,819,822,823,826],{},"On the next screen, click the ",[111,820,821],{},"Show advanced settings"," button and scroll down to find the ",[111,824,825],{},"Internal Storage"," setting.",[478,828,829,830,833,834,837,838,841,842,192],{},"The default ",[111,831,832],{},"2,048 MB"," is too small and will cause issues for us down the road, so we are going to need to increase it. Select ",[111,835,836],{},"GB"," from the dropdown list, then set the value to ",[220,839,840],{},"64",". Finally, click ",[111,843,511],{},[116,845,846],{},"We are now done setting up and configuring Android Studio and our Android Virtual Device. You will then be returned to the AVD device list, where your new Pixel 4 will be listed. We are done with Android Studio at this point, so close this window and exit Android Studio.",[205,848,850],{"id":849},"install-flutter","Install Flutter",[116,852,853,854,856],{},"Now that we have all our tools installed, it is time to move on to installing Flutter itself. To install Flutter, we will be using PowerShell. If you still have PowerShell open, you will need to close and re-open it so that our updated ",[220,855,702],{}," variables are populated.",[116,858,859],{},"In PowerShell, we will create a directory where we will install Flutter to. Run the following command to create this directory:",[358,861,863],{"className":360,"code":862,"language":362,"meta":106,"style":106},"cd; mkdir bin; cd bin\n",[220,864,865],{"__ignoreMap":106},[366,866,867],{"class":368,"line":369},[366,868,862],{},[116,870,871,872,875],{},"This will create a directory, ",[220,873,874],{},"bin",", in your home folder, then navigate to that directory.",[116,877,878,879,881],{},"Next, we are going to use Git to download the latest version of Flutter. While still in the ",[220,880,874],{}," directory in PowerShell, issue the following command:",[358,883,885],{"className":360,"code":884,"language":362,"meta":106,"style":106},"git clone https:\u002F\u002Fgithub.com\u002Fflutter\u002Fflutter.git -b stable\n",[220,886,887],{"__ignoreMap":106},[366,888,889],{"class":368,"line":369},[366,890,884],{},[116,892,893,894,378],{},"If you have done this correctly, you should see output resembling the following (",[269,895,896],{},"figure 3.8",[116,898,899],{},[310,900],{"alt":901,"src":902},"Figure 3.8: Successfully cloning the Flutter repository using PowerShell","\u002Fimages\u002Fflutter-for-jobseekers\u002Ffigure-3-8.png",[315,904,905],{},[116,906,901],{},[116,908,909,910,912,913,916,917,919,920,922,923,925],{},"Cloning the Flutter repository into the ",[220,911,874],{}," directory will pull down the latest versions of both ",[111,914,915],{},"Flutter and Dart"," for us. However, before we can use it, we will need to add it to our ",[220,918,702],{},". So, just like before, head back to the ",[111,921,679],{},", edit the ",[111,924,702],{},", and add the following location to the list:",[358,927,930],{"className":928,"code":929,"language":726,"meta":106},[724],"C:\\Users\\\u003Cuser>\\bin\\flutter\\bin\n",[220,931,929],{"__ignoreMap":106},[116,933,934,935,938,939,378],{},"Be sure to replace ",[220,936,937],{},"\u003Cuser>"," with your actual username. The easiest way to find this is by referring to the PowerShell prompt. If you have done this correctly, you will see something resembling the following (",[269,940,941],{},"figure 3.9",[116,943,944],{},[310,945],{"alt":946,"src":947},"Figure 3.9: Adding Flutter to the Path environment variable","\u002Fimages\u002Fflutter-for-jobseekers\u002Ffigure-3-9.png",[315,949,950],{},[116,951,946],{},[116,953,954,955,957],{},"Once you have added Flutter to your ",[220,956,702],{}," variable, you will need to restart PowerShell to read in the new variables. At this point, you should now be able to run the Flutter command line tools!",[205,959,961],{"id":960},"run-flutter-doctor","Run flutter doctor",[116,963,964],{},"The first command we will issue to Flutter is:",[358,966,968],{"className":360,"code":967,"language":362,"meta":106,"style":106},"flutter doctor\n",[220,969,970],{"__ignoreMap":106},[366,971,972],{"class":368,"line":369},[366,973,967],{},[116,975,976,977,980],{},"This will download and install any missing components, then run through a series of checks to verify that Flutter and all the necessary components required to build and deploy applications are installed correctly. The first time you run ",[220,978,979],{},"flutter doctor"," will take a while, but any subsequent times you run it will go much faster.",[116,982,983,984,986,987,378],{},"Once ",[220,985,979],{}," has finished, a summary will be reported with any issues (and often their solutions) highlighted, similar to the following screenshot, but running a much newer version of Flutter (",[269,988,989],{},"figure 3.10",[116,991,992],{},[310,993],{"alt":994,"src":995},"Figure 3.10: Flutter doctor has finished running for the first time","\u002Fimages\u002Fflutter-for-jobseekers\u002Ffigure-3-10.png",[315,997,998],{},[116,999,994],{},[116,1001,1002],{},"The first issue we see is a message about the licenses for the Android toolchain not having been accepted. Thankfully, it gives us the command to run to fix this:",[358,1004,1006],{"className":360,"code":1005,"language":362,"meta":106,"style":106},"flutter doctor --android-licenses\n",[220,1007,1008],{"__ignoreMap":106},[366,1009,1010],{"class":368,"line":369},[366,1011,1005],{},[116,1013,1014,1015,1017],{},"Be sure to read the licenses carefully and agree to each of them. Once completed, running ",[220,1016,979],{}," again should show a green checkmark next to each of the different categories.",[194,1019,1020,1021,1024,1025,1028],{},"If you do not have ",[111,1022,1023],{},"Google Chrome"," installed, there will be a red ",[220,1026,1027],{},"X"," next to the Chrome category; however, this will not impact our ability to test our code on the AVD.",[116,1030,1031],{},"If all has gone well, you now have a fully functioning Flutter installation with all the necessary tools to build and run applications! Later in this chapter, we will install Visual Studio Code, which is the IDE we will be using to write our Flutter code.",[343,1033,1034,1037,1038,1041,1042,1048],{},[111,1035,1036],{},"Additional reading:"," If you get stuck anywhere along the way, the Flutter website has always-up-to-date instructions, which may include steps that were not required at the time this book was written. To view those steps, refer to ",[269,1039,1040],{},"Installing Flutter on Windows"," (",[111,1043,1044],{},[262,1045,1046],{"href":1046,"rel":1047},"https:\u002F\u002Fdocs.flutter.dev\u002Fget-started\u002Finstall\u002Fwindows",[266],").",[120,1050,141],{"id":1051},"getting-started-on-macos",[116,1053,1054,1055,1058,1059,1062],{},"To write Flutter applications on macOS, we are going to need a couple of tools, which we will look at one-by-one. The tools we are going to install include ",[111,1056,1057],{},"Xcode and Android Studio",", in addition to ",[111,1060,1061],{},"Flutter"," itself.",[201,1064,1065,1069,1075,1092,1111,1155,1158,1161,1169,1178,1191,1198,1204,1207,1220,1226,1248,1255,1260,1264,1267,1280,1287,1319,1325,1329,1346,1369,1386,1393,1407,1414,1430,1433,1451,1457,1461,1467,1483,1510,1516,1520,1526,1529,1532,1559,1562,1583,1592,1598,1602,1614,1624,1659,1681,1687,1691,1697,1709,1712,1718,1721,1736,1743,1761,1775,1781],{"level":203},[205,1066,1068],{"id":1067},"install-xcode","Install Xcode",[116,1070,1071,1074],{},[111,1072,1073],{},"Xcode"," is Apple's all-in-one utility for developing applications that run on its line of products, from the iPhone and Apple Watch to applications running on macOS and the iPad. Conveniently, it also includes the command line utilities we will need to build Flutter applications.",[116,1076,1077,1078,1084,1085,1091],{},"To install Xcode, you can either download it directly from Apple's developer website (",[111,1079,1080],{},[262,1081,1082],{"href":1082,"rel":1083},"https:\u002F\u002Fdeveloper.apple.com\u002Fxcode\u002F",[266],") or from the App Store by searching for Xcode or by using the following link: ",[111,1086,1087],{},[262,1088,1089],{"href":1089,"rel":1090},"https:\u002F\u002Fapps.apple.com\u002Fus\u002Fapp\u002Fxcode\u002Fid497799835",[266],". The download will take a while, depending on the speed of your internet connection, as Xcode is quite large.",[116,1093,1094,1095,1098,1099,1102,1103,1106,1107,1110],{},"Once Xcode is installed, you will need to launch ",[111,1096,1097],{},"Terminal.app",". Use Spotlight (⌘",[269,1100,1101],{},"-Space",") to search for ",[220,1104,1105],{},"terminal"," or find it in ",[220,1108,1109],{},"\u002FApplications\u002FUtilities",". Once the terminal has loaded, you will need to run the following commands one at a time:",[358,1112,1116],{"className":1113,"code":1114,"language":1115,"meta":106,"style":106},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","sudo xcode-select --switch \u002FApplications\u002FXcode.app\u002FContents\u002FDeveloper\nsudo xcodebuild -runFirstLaunch\nsudo xcodebuild -license\n","bash",[220,1117,1118,1134,1145],{"__ignoreMap":106},[366,1119,1120,1124,1128,1131],{"class":368,"line":369},[366,1121,1123],{"class":1122},"sBMFI","sudo",[366,1125,1127],{"class":1126},"sfazB"," xcode-select",[366,1129,1130],{"class":1126}," --switch",[366,1132,1133],{"class":1126}," \u002FApplications\u002FXcode.app\u002FContents\u002FDeveloper\n",[366,1135,1137,1139,1142],{"class":368,"line":1136},2,[366,1138,1123],{"class":1122},[366,1140,1141],{"class":1126}," xcodebuild",[366,1143,1144],{"class":1126}," -runFirstLaunch\n",[366,1146,1148,1150,1152],{"class":368,"line":1147},3,[366,1149,1123],{"class":1122},[366,1151,1141],{"class":1126},[366,1153,1154],{"class":1126}," -license\n",[116,1156,1157],{},"This will configure your system to use Xcode and allow you to read and agree to the license agreement, all without the need to load Xcode itself. At this point, we are done with Xcode for now, so let us move on.",[205,1159,455],{"id":1160},"install-android-studio-1",[116,1162,1163,1165,1166,1168],{},[111,1164,182],{}," is Google's ",[111,1167,401],{}," used to create Android applications. We will not be using Android Studio to build our Flutter applications (although, that is certainly a possibility) and instead will be using it to install the tools, which will enable us to write, build, and test our applications using whatever IDE we want.",[116,1170,1171,1172,1177],{},"To install Android Studio, you will first need to navigate to ",[111,1173,1174],{},[262,1175,471],{"href":471,"rel":1176},[266]," and download the latest version. After agreeing to the licensing agreement, you will be prompted to choose which version of Android Studio is right for you, depending on your Mac's processor.",[343,1179,1180,1181,1184,1185,1187,1188,192],{},"To determine which one to download, go to the Apple menu and select ",[111,1182,1183],{},"About This Mac",". The processor line will help you to determine if you have an ",[111,1186,615],{}," processor or one of Apple's custom ",[111,1189,1190],{},"M chips",[116,1192,1193,1194,1197],{},"Continue to download the version of Android Studio that is appropriate for your system. Once the download is complete, mount the disk image, drag the application to the ",[220,1195,1196],{},"Applications"," folder, and launch Android Studio.",[116,1199,1200,1201,759],{},"You will likely be prompted by the initial screen to update the plugins via a message at the bottom of the window. Go ahead and do that, allowing Android Studio to update its components and restart itself to complete the process. If you are prompted to import settings from a previous install, choose not to import anything. Eventually, you will find yourself at a ",[111,1202,1203],{},"Welcome to Android Studio",[205,1205,543],{"id":1206},"install-the-android-sdk-tools-1",[116,1208,1209,1210,1213,1214,1216,1217,1219],{},"On the welcome window, look for the ",[111,1211,1212],{},"More Actions"," link and from the dropdown which appears, choose ",[111,1215,549],{},". Here, we will need to first make a note of the ",[111,1218,715],{}," at the top of the window. Momentarily, we will be using this to configure our system.",[116,1221,1222,1223,1225],{},"For now, however, choose the ",[111,1224,572],{}," tab. Check the boxes for:",[133,1227,1228,1233,1238,1242],{},[136,1229,1230],{},[111,1231,1232],{},"NDK (Side by side)",[136,1234,1235],{},[111,1236,1237],{},"Android SDK Command-line Tools (latest)",[136,1239,1240],{},[111,1241,599],{},[136,1243,1244,1245],{},"if you are using a Mac with an Intel processor, also the ",[111,1246,1247],{},"Intel x86 Emulator Accelerator (HAXM installer)",[116,1249,1250,1251,1254],{},"Click ",[111,1252,1253],{},"Apply",", accept the license agreements, and allow these components to download.",[194,1256,1257,1259],{},[111,1258,636],{}," the Android Emulator no longer supports Intel HAXM on macOS — the option has not been available since macOS 11 (Android Developers, n.d.-a), and Intel retired HAXM in 2023 (Intel, 2023).",[205,1261,1263],{"id":1262},"add-the-platform-tools-to-the-path-1","Add the platform tools to the PATH",[116,1265,1266],{},"Meanwhile, head back into the terminal. We are going to take that Android SDK Location path that you took note of earlier and tell our system to use it to find the tools, which Flutter will need to work. So, in the terminal, type the following:",[358,1268,1270],{"className":1113,"code":1269,"language":1115,"meta":106,"style":106},"nano ~\u002F.zshrc\n",[220,1271,1272],{"__ignoreMap":106},[366,1273,1274,1277],{"class":368,"line":369},[366,1275,1276],{"class":1122},"nano",[366,1278,1279],{"class":1126}," ~\u002F.zshrc\n",[116,1281,1282,1283,1286],{},"This will open a file within a command-line-based text editor (",[269,1284,1285],{},"figure 3.11","). If the file is empty, simply add the following line using the Android SDK Location as your guide:",[358,1288,1291],{"className":1113,"code":1289,"filename":1290,"language":1115,"meta":106,"style":106},"export PATH=\"\u002FUsers\u002F\u003Cuser>\u002FLibrary\u002FAndroid\u002Fsdk\u002Fplatform-tools:$PATH\"\n","~\u002F.zshrc",[220,1292,1293],{"__ignoreMap":106},[366,1294,1295,1299,1303,1307,1310,1313,1316],{"class":368,"line":369},[366,1296,1298],{"class":1297},"spNyl","export",[366,1300,1302],{"class":1301},"sTEyZ"," PATH",[366,1304,1306],{"class":1305},"sMK4o","=",[366,1308,1309],{"class":1305},"\"",[366,1311,1312],{"class":1126},"\u002FUsers\u002F\u003Cuser>\u002FLibrary\u002FAndroid\u002Fsdk\u002Fplatform-tools:",[366,1314,1315],{"class":1301},"$PATH",[366,1317,1318],{"class":1305},"\"\n",[116,1320,1321],{},[310,1322],{"alt":1323,"src":1324},"Figure 3.11: Adding the Android SDK platform-tools to the PATH variable","\u002Fimages\u002Fflutter-for-jobseekers\u002Ffigure-3-11.png",[315,1326,1327],{},[116,1328,1323],{},[478,1330,1331,1332,1334,1335,1338,1339,1342,1343,192],{},"Note that you will be replacing ",[220,1333,937],{}," with your username so that it matches the Android SDK Location and that you are ",[269,1336,1337],{},"adding"," ",[220,1340,1341],{},"platform-tools"," to the end of the path. Also, note that this is ",[111,1344,1345],{},"case-sensitive",[116,1347,1348,1349,1352,1353,1356,1357,1360,1361,1364,1365,1368],{},"If there is already something in this file, find the line which starts with ",[220,1350,1351],{},"export PATH="," and add the Android SDK Location (including the ",[220,1354,1355],{},"\u002Fplatform-tools"," part) to the end of the line, just before the ",[220,1358,1359],{},":$PATH",". Each directory in this ",[220,1362,1363],{},"PATH"," variable will be separated by a colon (",[220,1366,1367],{},":","), so double-check that you have done it correctly.",[116,1370,1371,1372,1374,1375,1378,1379,1382,1383,1385],{},"Once you have edited the file and updated the ",[220,1373,1363],{}," variable, press ⌃",[269,1376,1377],{},"O"," (Control-O) to write the file to the disk, pressing ",[269,1380,1381],{},"Return"," when it prompts for the filename. Press ⌃",[269,1384,1027],{}," (Control-X) to exit the editor. Quit and restart your terminal to read in the new variables.",[116,1387,1388,1389,1392],{},"You can verify that the changes have taken effect by typing the following, which should return the path to the ",[220,1390,1391],{},"adb"," utility:",[358,1394,1396],{"className":1113,"code":1395,"language":1115,"meta":106,"style":106},"which adb\n",[220,1397,1398],{"__ignoreMap":106},[366,1399,1400,1404],{"class":368,"line":369},[366,1401,1403],{"class":1402},"s2Zo4","which",[366,1405,1406],{"class":1126}," adb\n",[116,1408,1409,1410,1413],{},"If there is an error, chances are your terminal is not configured to use the ",[220,1411,1412],{},"zsh"," shell. To fix this, type the following and restart the terminal:",[358,1415,1417],{"className":1113,"code":1416,"language":1115,"meta":106,"style":106},"chsh -s \u002Fbin\u002Fzsh\n",[220,1418,1419],{"__ignoreMap":106},[366,1420,1421,1424,1427],{"class":368,"line":369},[366,1422,1423],{"class":1122},"chsh",[366,1425,1426],{"class":1126}," -s",[366,1428,1429],{"class":1126}," \u002Fbin\u002Fzsh\n",[205,1431,763],{"id":1432},"create-an-android-virtual-device-1",[116,1434,1435,1436,1438,1439,1441,1442,1041,1444,1447,1448,1450],{},"Back in Android Studio, close the ",[111,1437,549],{}," window to return to the welcome screen. Under the ",[111,1440,1212],{}," menu, locate the ",[111,1443,769],{},[269,1445,1446],{},"figure 3.12","). This will pop-up a window that will allow us to create an ",[111,1449,463],{},". Click the button to create a device.",[116,1452,1453],{},[310,1454],{"alt":1455,"src":1456},"Figure 3.12: The AVD Manager","\u002Fimages\u002Fflutter-for-jobseekers\u002Ffigure-3-12.png",[315,1458,1459],{},[116,1460,1455],{},[194,1462,1463,792,1465,796],{},[111,1464,636],{},[111,1466,795],{},[116,1468,1469,1470,1472,1473,1475,1476,1478,1479,813,1481,192],{},"The device we are going to emulate is Google's ",[111,1471,802],{}," phone. Select it from the list and click ",[111,1474,504],{},". We will then be prompted to choose a system image. Click the ",[111,1477,809],{}," link next to release with the highest API level. This will download an Android system image with the latest version of Android for us to use on our AVD. When it is done downloading, click the ",[111,1480,511],{},[111,1482,504],{},[478,1484,1485,1486,1489,1490,822,1493,1495,1496,1499,1500,1502,1503,1506,1507,1048],{},"By default, the AVD will be created with only ",[111,1487,1488],{},"2 GB"," storage, which will cause us problems as we develop and test our applications. To remedy this, click the ",[111,1491,1492],{},"Show Advanced Settings",[111,1494,825],{}," setting. Change the dropdown from ",[111,1497,1498],{},"MB"," to ",[111,1501,836],{},", then set the value to ",[220,1504,1505],{},"16",". That will give us 16 GB of internal storage to work with, which should be more than sufficient (",[269,1508,1509],{},"figure 3.13",[116,1511,1512],{},[310,1513],{"alt":1514,"src":1515},"Figure 3.13: Adjusting the internal storage size of your new AVD","\u002Fimages\u002Fflutter-for-jobseekers\u002Ffigure-3-13.png",[315,1517,1518],{},[116,1519,1514],{},[116,1521,1522,1523,1525],{},"Click on ",[111,1524,511],{}," to create your AVD, then close the AVD Manager window and exit Android Studio.",[205,1527,850],{"id":1528},"install-flutter-1",[116,1530,1531],{},"It is time to install Flutter. We will do this in the terminal, too. First, we need a place to install Flutter to, so we are going to create a directory where we will keep it. Run the following command to do that:",[358,1533,1535],{"className":1113,"code":1534,"language":1115,"meta":106,"style":106},"cd && mkdir bin && cd bin\n",[220,1536,1537],{"__ignoreMap":106},[366,1538,1539,1542,1545,1548,1551,1553,1556],{"class":368,"line":369},[366,1540,1541],{"class":1402},"cd",[366,1543,1544],{"class":1305}," &&",[366,1546,1547],{"class":1122}," mkdir",[366,1549,1550],{"class":1126}," bin",[366,1552,1544],{"class":1305},[366,1554,1555],{"class":1402}," cd",[366,1557,1558],{"class":1126}," bin\n",[116,1560,1561],{},"Next, we will pull down the latest version of Flutter using Git with the following command:",[358,1563,1564],{"className":1113,"code":884,"language":1115,"meta":106,"style":106},[220,1565,1566],{"__ignoreMap":106},[366,1567,1568,1571,1574,1577,1580],{"class":368,"line":369},[366,1569,1570],{"class":1122},"git",[366,1572,1573],{"class":1126}," clone",[366,1575,1576],{"class":1126}," https:\u002F\u002Fgithub.com\u002Fflutter\u002Fflutter.git",[366,1578,1579],{"class":1126}," -b",[366,1581,1582],{"class":1126}," stable\n",[116,1584,1585,1586,1041,1589,378],{},"This will install the latest version of Flutter to ",[220,1587,1588],{},"\u002FUsers\u002F\u003Cuser>\u002Fbin\u002Fflutter",[269,1590,1591],{},"figure 3.14",[116,1593,1594],{},[310,1595],{"alt":1596,"src":1597},"Figure 3.14: Installing Flutter via the command line","\u002Fimages\u002Fflutter-for-jobseekers\u002Ffigure-3-14.png",[315,1599,1600],{},[116,1601,1596],{},[116,1603,1604,1605,1607,1608,1611,1612,1367],{},"We are going to need to edit our ",[220,1606,1363],{}," variable again so that we can use it, though. Just like before, open up ",[220,1609,1610],{},".zshrc"," in ",[220,1613,1276],{},[358,1615,1616],{"className":1113,"code":1269,"language":1115,"meta":106,"style":106},[220,1617,1618],{"__ignoreMap":106},[366,1619,1620,1622],{"class":368,"line":369},[366,1621,1276],{"class":1122},[366,1623,1279],{"class":1126},[116,1625,1626,1627,1630,1631,1633,1634,1636,1637,1640,1641,1643,1644,1646,1647,1649,1650,1652,1653,1655,1656,378],{},"This time, you are going to add ",[220,1628,1629],{},"\u002FUsers\u002F\u003Cuser>\u002Fbin\u002Fflutter\u002Fbin"," to the ",[220,1632,1363],{},", replacing ",[220,1635,937],{}," with your username. If you are uncertain what your username is, you can run the ",[220,1638,1639],{},"whoami"," command. Make sure that you insert a colon (",[220,1642,1367],{},") between the different paths in the ",[220,1645,1363],{}," variable. Save the file and quit ",[220,1648,1276],{}," when you are finished. Your ",[220,1651,1363],{}," should look something like the following in your ",[220,1654,1610],{}," file (",[269,1657,1658],{},"figure 3.15",[358,1660,1662],{"className":1113,"code":1661,"filename":1290,"language":1115,"meta":106,"style":106},"export PATH=\"[…]\u002Fplatform-tools:\u002FUsers\u002F\u003Cuser>\u002Fbin\u002Fflutter\u002Fbin:$PATH\"\n",[220,1663,1664],{"__ignoreMap":106},[366,1665,1666,1668,1670,1672,1674,1677,1679],{"class":368,"line":369},[366,1667,1298],{"class":1297},[366,1669,1302],{"class":1301},[366,1671,1306],{"class":1305},[366,1673,1309],{"class":1305},[366,1675,1676],{"class":1126},"[…]\u002Fplatform-tools:\u002FUsers\u002F\u003Cuser>\u002Fbin\u002Fflutter\u002Fbin:",[366,1678,1315],{"class":1301},[366,1680,1318],{"class":1305},[116,1682,1683],{},[310,1684],{"alt":1685,"src":1686},"Figure 3.15: Adding Flutter to the PATH variable","\u002Fimages\u002Fflutter-for-jobseekers\u002Ffigure-3-15.png",[315,1688,1689],{},[116,1690,1685],{},[116,1692,1693,1694,1696],{},"Like before, you will need to restart your terminal for these changes to take effect. You can test to make sure that Flutter is found in your ",[220,1695,1363],{}," by running the following command. If it returns the path to Flutter, you are good to go.",[358,1698,1700],{"className":1113,"code":1699,"language":1115,"meta":106,"style":106},"which flutter\n",[220,1701,1702],{"__ignoreMap":106},[366,1703,1704,1706],{"class":368,"line":369},[366,1705,1403],{"class":1402},[366,1707,1708],{"class":1126}," flutter\n",[205,1710,961],{"id":1711},"run-flutter-doctor-1",[116,1713,1714,1715,1717],{},"The next step is to run the ",[220,1716,979],{}," command. This will download and install the necessary components for Flutter. It will also alert you to any issues which could prevent Flutter from working properly. At this point, you are likely to see a couple of different issues.",[116,1719,1720],{},"First, you should be prompted to accept the Android licenses. To do this, run the following command:",[358,1722,1723],{"className":1113,"code":1005,"language":1115,"meta":106,"style":106},[220,1724,1725],{"__ignoreMap":106},[366,1726,1727,1730,1733],{"class":368,"line":369},[366,1728,1729],{"class":1122},"flutter",[366,1731,1732],{"class":1126}," doctor",[366,1734,1735],{"class":1126}," --android-licenses\n",[116,1737,1738,1739,1742],{},"Next, it is likely that you will run into an issue with Xcode in that ",[111,1740,1741],{},"CocoaPods"," is not installed. We can fix this by running the following command:",[358,1744,1746],{"className":1113,"code":1745,"language":1115,"meta":106,"style":106},"sudo gem install cocoapods\n",[220,1747,1748],{"__ignoreMap":106},[366,1749,1750,1752,1755,1758],{"class":368,"line":369},[366,1751,1123],{"class":1122},[366,1753,1754],{"class":1126}," gem",[366,1756,1757],{"class":1126}," install",[366,1759,1760],{"class":1126}," cocoapods\n",[116,1762,1763,1764,1766,1767,1770,1771,1774],{},"If all goes well, running ",[220,1765,979],{}," should not recommend any additional steps (",[269,1768,1769],{},"figure 3.16","). However, if you are using a Mac with ",[111,1772,1773],{},"Apple Silicon"," (M1, M2, and so on), you will need to perform a few additional steps.",[116,1776,1777],{},[310,1778],{"alt":1779,"src":1780},"Figure 3.16: Flutter doctor completes without errors","\u002Fimages\u002Fflutter-for-jobseekers\u002Ffigure-3-16.png",[315,1782,1783],{},[116,1784,1779],{},[205,1786,1788],{"id":1787},"additional-information-for-devices-with-apple-silicon-m1-m2-and-so-on","Additional information for devices with Apple Silicon (M1, M2, and so on)",[478,1790,1791,1792,1795,1796,192],{},"If you are on macOS and using one of Apple's newer devices which has an ",[111,1793,1794],{},"M1, M2, or later chip",", you are bound to run into some issues getting Flutter working. To remedy this, we need to install the x86 versions of CocoaPods and ",[220,1797,1798],{},"ffi",[116,1800,1801,1802,1805],{},"First, you will need to install ",[111,1803,1804],{},"Rosetta 2"," using the following command:",[358,1807,1809],{"className":1113,"code":1808,"language":1115,"meta":106,"style":106},"sudo softwareupdate --install-rosetta --agree-to-license\n",[220,1810,1811],{"__ignoreMap":106},[366,1812,1813,1815,1818,1821],{"class":368,"line":369},[366,1814,1123],{"class":1122},[366,1816,1817],{"class":1126}," softwareupdate",[366,1819,1820],{"class":1126}," --install-rosetta",[366,1822,1823],{"class":1126}," --agree-to-license\n",[116,1825,1826,1827,1829],{},"Next, you will need to remove the existing CocoaPods and ",[220,1828,1798],{},", and replace them with their x86 counterparts using the following commands:",[358,1831,1833],{"className":1113,"code":1832,"language":1115,"meta":106,"style":106},"sudo gem uninstall ffi\nsudo gem uninstall cocoapods\nsudo arch -x86_64 gem install cocoapods\nsudo arch -x86_64 gem install ffi\n",[220,1834,1835,1847,1857,1873],{"__ignoreMap":106},[366,1836,1837,1839,1841,1844],{"class":368,"line":369},[366,1838,1123],{"class":1122},[366,1840,1754],{"class":1126},[366,1842,1843],{"class":1126}," uninstall",[366,1845,1846],{"class":1126}," ffi\n",[366,1848,1849,1851,1853,1855],{"class":368,"line":1136},[366,1850,1123],{"class":1122},[366,1852,1754],{"class":1126},[366,1854,1843],{"class":1126},[366,1856,1760],{"class":1126},[366,1858,1859,1861,1864,1867,1869,1871],{"class":368,"line":1147},[366,1860,1123],{"class":1122},[366,1862,1863],{"class":1126}," arch",[366,1865,1866],{"class":1126}," -x86_64",[366,1868,1754],{"class":1126},[366,1870,1757],{"class":1126},[366,1872,1760],{"class":1126},[366,1874,1876,1878,1880,1882,1884,1886],{"class":368,"line":1875},4,[366,1877,1123],{"class":1122},[366,1879,1863],{"class":1126},[366,1881,1866],{"class":1126},[366,1883,1754],{"class":1126},[366,1885,1757],{"class":1126},[366,1887,1846],{"class":1126},[116,1889,1890,1891,1894],{},"Any time you need to use CocoaPods and you find that something is not working quite right, try prepending the command with ",[220,1892,1893],{},"arch -x86_64"," and running it again, such as with the following example:",[358,1896,1898],{"className":1113,"code":1897,"language":1115,"meta":106,"style":106},"arch -x86_64 flutter run\n",[220,1899,1900],{"__ignoreMap":106},[366,1901,1902,1905,1907,1910],{"class":368,"line":369},[366,1903,1904],{"class":1122},"arch",[366,1906,1866],{"class":1126},[366,1908,1909],{"class":1126}," flutter",[366,1911,1912],{"class":1126}," run\n",[194,1914,1915,1917,1918,1921,1922,1924,1925,1927,1928,1930,1931,1934,1935,1938],{},[111,1916,636],{}," Flutter's current Apple Silicon guide still requires Rosetta 2 (installed with the same ",[220,1919,1920],{},"softwareupdate"," command), but it no longer mentions x86 CocoaPods, x86 ",[220,1923,1798],{}," or ",[220,1926,1893],{},". For CocoaPods crashes related to ",[220,1929,1798],{},", it suggests reinstalling the gem with the ",[220,1932,1933],{},"--enable-libffi-alloc"," flag: ",[220,1936,1937],{},"sudo gem uninstall ffi && sudo gem install ffi -- --enable-libffi-alloc"," (Flutter, n.d.).",[120,1940,144],{"id":1941},"installing-and-configuring-visual-studio-code",[116,1943,1944,1945,1947,1948,1954],{},"We are going to be using ",[111,1946,173],{}," to develop our Flutter applications for the duration of this book. Whether you are on macOS or Windows, you can find the latest version on their website: ",[111,1949,1950],{},[262,1951,1952],{"href":1952,"rel":1953},"https:\u002F\u002Fcode.visualstudio.com\u002F",[266],". Download and install the latest version.",[116,1956,1957],{},"Once you have it installed, run the program. Visual Studio Code does not, by default, have any idea what Flutter or Dart is, which certainly makes developing applications difficult. Luckily, Visual Studio Code is highly extensible, with a thriving extensions marketplace. Extensions to support Flutter and Dart have been created for Visual Studio Code, and we will need to install them.",[116,1959,1960,1961,1964,1965,1968,1969,1972,1973,378],{},"To accomplish this, look for the ",[111,1962,1963],{},"Extensions"," icon on the left-hand side of the window, or press ",[269,1966,1967],{},"Ctrl + Shift + x"," on Windows or ⌘ ",[269,1970,1971],{},"+ Shift + x"," on macOS (",[269,1974,1975],{},"figure 3.17",[116,1977,1978],{},[310,1979],{"alt":1980,"src":1981},"Figure 3.17: The extensions view in Visual Studio Code","\u002Fimages\u002Fflutter-for-jobseekers\u002Ffigure-3-17.png",[315,1983,1984],{},[116,1985,1980],{},[116,1987,1988,1989,1991,1992,1995,1996,1999,2000,192],{},"Search the extensions marketplace for ",[111,1990,1061],{}," (the author is ",[269,1993,1994],{},"Dart Code",") and press the blue ",[111,1997,1998],{},"Install"," button. This will install both the Flutter and Dart extensions, which you can verify by searching for ",[220,2001,2002],{},"@installed",[343,2004,2005],{},"There are many great extensions in the extension marketplace, so feel free to install any other extensions you believe might be useful while you are in there!",[116,2007,2008],{},"Congratulations! You now have a development environment set up for Flutter development! Now, let us create a new Flutter project and get it running in our AVD.",[120,2010,147],{"id":2011},"building-and-running-your-first-flutter-application",[201,2013,2014,2018,2033,2057,2060,2075,2081,2085,2119,2129,2135,2141,2145,2149,2152,2178,2182,2185,2216,2222,2226,2237,2241,2259,2270,2276],{"level":203},[205,2015,2017],{"id":2016},"create-the-project","Create the project",[116,2019,2020,2021,2024,2025,2028,2029,2032],{},"Visual Studio Code has a built-in command line that we can use to create our Flutter project. To invoke it, press ",[269,2022,2023],{},"Ctrl + `"," or find the ",[111,2026,2027],{},"Terminal"," option in the ",[111,2030,2031],{},"View"," menu. First, we will want to create a directory in which we will keep all our projects. Run the following to create a development directory and navigate into it:",[358,2034,2036],{"className":1113,"code":2035,"language":1115,"meta":106,"style":106},"cd; mkdir development; cd development\n",[220,2037,2038],{"__ignoreMap":106},[366,2039,2040,2042,2045,2047,2050,2052,2054],{"class":368,"line":369},[366,2041,1541],{"class":1402},[366,2043,2044],{"class":1305},";",[366,2046,1547],{"class":1122},[366,2048,2049],{"class":1126}," development",[366,2051,2044],{"class":1305},[366,2053,1555],{"class":1402},[366,2055,2056],{"class":1126}," development\n",[116,2058,2059],{},"Next, we will create our Flutter application. Run the following and let Flutter do its magic:",[358,2061,2063],{"className":1113,"code":2062,"language":1115,"meta":106,"style":106},"flutter create my_application\n",[220,2064,2065],{"__ignoreMap":106},[366,2066,2067,2069,2072],{"class":368,"line":369},[366,2068,1729],{"class":1122},[366,2070,2071],{"class":1126}," create",[366,2073,2074],{"class":1126}," my_application\n",[116,2076,2077,2078,2080],{},"At this point, we are finished with the terminal. Feel free to close it by clicking the ",[111,2079,1027],{}," button on the top-right corner of the terminal.",[205,2082,2084],{"id":2083},"open-the-project-in-visual-studio-code","Open the project in Visual Studio Code",[116,2086,2087,2088,2091,2092,2095,2096,2099,2100,2102,2103,2106,2107,2110,2111,2114,2115,2118],{},"Now, we need to open our project in Visual Studio Code. On the left-hand side of the Visual Studio Code window, locate the top-most icon to navigate to the ",[111,2089,2090],{},"Explorer"," view. You will be prompted with two options: ",[111,2093,2094],{},"Open Folder"," and ",[111,2097,2098],{},"Clone Repository",". Click the ",[111,2101,2094],{}," button, navigate to your ",[220,2104,2105],{},"home"," folder, double-click the ",[220,2108,2109],{},"development"," folder, double-click again on the ",[220,2112,2113],{},"my_application"," folder, then press the ",[111,2116,2117],{},"Select Folder"," button.",[194,2120,2121,2122,2125,2126,2118],{},"Visual Studio Code will prompt you with a message regarding ",[111,2123,2124],{},"trust",". This is a safety mechanism intended to prevent malicious code repositories from tampering with your system. Since we know where our code came from and we trust that it is safe, we will press the ",[111,2127,2128],{},"Yes, I trust the authors",[116,2130,2131,2132,378],{},"A small dialog will appear at the bottom of the window, asking us if we want to use the recommended settings for Dart, which we do. Click the button to accept the changes to your configuration. Your workspace should now look like the following (",[269,2133,2134],{},"figure 3.18",[116,2136,2137],{},[310,2138],{"alt":2139,"src":2140},"Figure 3.18: Visual Studio Code with a Flutter project open","\u002Fimages\u002Fflutter-for-jobseekers\u002Ffigure-3-18.png",[315,2142,2143],{},[116,2144,2139],{},[205,2146,2148],{"id":2147},"explore-the-project-structure","Explore the project structure",[116,2150,2151],{},"Let us talk about some of the key files and directories in this list view, to understand what we will be working with:",[2153,2154,2155,2161,2169,2173],"field-group",{},[2156,2157,2160],"field",{"name":2158,"type":2159},"android\u002F, ios\u002F, web\u002F","directory","Contain platform-specific configuration which is used when deploying your Flutter project to that platform.",[2156,2162,2164,2165,2168],{"name":2163,"type":2159},"test\u002F","Contains all the tests that you will be writing for your code and is consumed by the ",[220,2166,2167],{},"flutter test"," command.",[2156,2170,2172],{"name":2171,"type":2159},"lib\u002F","Contains all the source code for our application and is where we will be spending a lot of time throughout the rest of this book.",[2156,2174,2177],{"name":2175,"type":2176},"pubspec.yaml","file","Where we will add information about the application name, description, and version number. It is also where we will add any dependencies that our application relies upon, such as images, fonts, and packages.",[205,2179,2181],{"id":2180},"select-the-device","Select the device",[116,2183,2184],{},"To run our code, we will need to open the AVD we created earlier. There are a couple of ways to do this:",[133,2186,2187,2202],{},[136,2188,2189,2190,2193,2194,2197,2198,2201],{},"press ",[269,2191,2192],{},"Ctrl + Shift + p"," (on Windows) or ⌘ ",[269,2195,2196],{},"+ Shift + p"," (on macOS) to invoke the command palette and search for ",[111,2199,2200],{},"Flutter: Select Device",", or",[136,2203,2204,2205,2208,2209,2212,2213,378],{},"look at the bottom-left of the window, to the right of the Flutter version number. Depending on your system, you may see something which says, ",[111,2206,2207],{},"No device",", or perhaps you will see something like ",[111,2210,2211],{},"Edge (web-javascript)"," as highlighted in the following screenshot (",[269,2214,2215],{},"figure 3.19",[116,2217,2218],{},[310,2219],{"alt":2220,"src":2221},"Figure 3.19: The device selection option in Visual Studio Code","\u002Fimages\u002Fflutter-for-jobseekers\u002Ffigure-3-19.png",[315,2223,2224],{},[116,2225,2220],{},[116,2227,2228,2229,2232,2233,2236],{},"Either option will open a selector at the top-middle of the window. The option we are looking for is ",[111,2230,2231],{},"Start Pixel 4 API x",", where ",[269,2234,2235],{},"x"," is the version of the API used with your chosen version of Android that is installed on the device. Selecting this option will launch the AVD and automatically connect to it.",[205,2238,2240],{"id":2239},"configure-and-run","Configure and run",[116,2242,2243,2244,2247,2248,2250,2251,2254,2255,2258],{},"Wait for your AVD to finish booting into Android and allow it to complete any initial setup. Once it is ready, navigate back to Visual Studio Code and find the ",[111,2245,2246],{},"Run and Debug"," icon on the left-hand side of the window, which looks like a play button with a little bug on it. On this screen, below the ",[111,2249,2246],{}," button, click the link to ",[111,2252,2253],{},"Create a launch.json file",", choosing ",[111,2256,2257],{},"Dart & Flutter"," when prompted. This will automatically configure Visual Studio Code with the necessary settings to run our application and will automatically open the configuration file in our editor.",[116,2260,2261,2262,2265,2266,2269],{},"The final step is to press the green ",[111,2263,2264],{},"Play"," button to compile and run our application. The first time you compile your application will take the longest, as Flutter will need to download any necessary components and compile your entire application. When this process is complete, Flutter will automatically install the application on your AVD, launch it, and connect to it via the debugger. If all goes well, you have just run your first Flutter application (",[269,2267,2268],{},"figure 3.20",")!",[116,2271,2272],{},[310,2273],{"alt":2274,"src":2275},"Figure 3.20: The Flutter demo running on an Android Virtual Device","\u002Fimages\u002Fflutter-for-jobseekers\u002Ffigure-3-20.png",[315,2277,2278],{},[116,2279,2274],{},[120,2281,2283],{"id":2282},"conclusion","Conclusion",[116,2285,2286,2287,2290],{},"There is a fair amount of setup work involved in getting Flutter running. Luckily, we only need to do it ",[111,2288,2289],{},"once",". The feeling of watching your first Flutter application come to life in front of you can be magical, too.",[116,2292,2293,2294,2297,2298,2301],{},"In the upcoming chapter, we are going to look at the code for the demo application to get an idea of what is going on. We are also going to talk about ",[111,2295,2296],{},"widgets",", more generally speaking. (Like, what even ",[269,2299,2300],{},"is"," a widget, anyway?) Plus, we are going to make some widgets of our own. You are going to love this, so turn the page and get started!",[120,2303,2305],{"id":2304},"further-reading","Further reading",[125,2307,2308,2315,2321],{},[128,2309,2314],{"icon":2310,"title":2311,"target":2312,"to":2313},"i-lucide-terminal","PowerShell Documentation","_blank","https:\u002F\u002Faka.ms\u002Fpowershell","Although it is outside the scope of this book, PowerShell is a very powerful command line. For more information on using PowerShell, refer to the PowerShell Documentation.",[128,2316,2320],{"icon":2317,"title":2318,"target":2312,"to":2319},"i-simple-icons-git","About Git","https:\u002F\u002Fdocs.github.com\u002Fen\u002Fget-started\u002Fusing-git\u002Fabout-git","Git is an extremely powerful piece of software which is used extensively in the software development industry. Throughout your journey, you will undoubtedly have questions about it. A good place to start reading is GitHub's introduction to using Git.",[128,2322,2326],{"icon":2323,"title":2324,"target":2312,"to":2325},"i-simple-icons-apple","Developing with Flutter on Apple Silicon","https:\u002F\u002Fgithub.com\u002Fflutter\u002Fflutter\u002Fwiki\u002FDeveloping-with-Flutter-on-Apple-Silicon","From Flutter's GitHub Wiki.",[194,2328,2329,2331,2332,1938],{},[111,2330,636],{}," the Flutter wiki page has migrated to the Flutter repository: ",[262,2333,2334],{"href":2334,"rel":2335},"https:\u002F\u002Fgithub.com\u002Fflutter\u002Fflutter\u002Fblob\u002Fmaster\u002Fdocs\u002Fplatforms\u002Fdesktop\u002Fmacos\u002FDeveloping-with-Flutter-on-Apple-Silicon.md",[266],[120,2337,2339],{"id":2338},"references","References",[133,2341,2342,2356,2368,2379],{},[136,2343,2344,2345,2348,2349,1338,2353],{},"Android Developers. (n.d.-a). ",[269,2346,2347],{},"Configure hardware acceleration for the Android Emulator",". Retrieved from Android Developers: ",[262,2350,2351],{"href":2351,"rel":2352},"https:\u002F\u002Fdeveloper.android.com\u002Fstudio\u002Frun\u002Femulator-acceleration",[266],[269,2354,2355],{},"(added, not in the book)",[136,2357,2358,2359,2348,2362,1338,2366],{},"Android Developers. (n.d.-b). ",[269,2360,2361],{},"Create and manage virtual devices",[262,2363,2364],{"href":2364,"rel":2365},"https:\u002F\u002Fdeveloper.android.com\u002Fstudio\u002Frun\u002Fmanaging-avds",[266],[269,2367,2355],{},[136,2369,2370,2371,2373,2374,1338,2377],{},"Flutter. (n.d.). ",[269,2372,2324],{},". Retrieved from GitHub: ",[262,2375,2334],{"href":2334,"rel":2376},[266],[269,2378,2355],{},[136,2380,2381,2382,2373,2385,1338,2389],{},"Intel. (2023, January 28). ",[269,2383,2384],{},"Intel Hardware Accelerated Execution Manager (HAXM)",[262,2386,2387],{"href":2387,"rel":2388},"https:\u002F\u002Fgithub.com\u002Fintel\u002Fhaxm",[266],[269,2390,2355],{},[2392,2393,2394],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}",{"title":106,"searchDepth":1136,"depth":1136,"links":2396},[2397,2398,2410,2420,2421,2428,2429,2430],{"id":122,"depth":1136,"text":123},{"id":185,"depth":1136,"text":138,"children":2399},[2400,2401,2402,2403,2404,2405,2406,2407,2408,2409],{"id":207,"depth":1147,"text":208},{"id":248,"depth":1147,"text":249},{"id":321,"depth":1147,"text":322},{"id":391,"depth":1147,"text":392},{"id":454,"depth":1147,"text":455},{"id":542,"depth":1147,"text":543},{"id":654,"depth":1147,"text":655},{"id":762,"depth":1147,"text":763},{"id":849,"depth":1147,"text":850},{"id":960,"depth":1147,"text":961},{"id":1051,"depth":1136,"text":141,"children":2411},[2412,2413,2414,2415,2416,2417,2418,2419],{"id":1067,"depth":1147,"text":1068},{"id":1160,"depth":1147,"text":455},{"id":1206,"depth":1147,"text":543},{"id":1262,"depth":1147,"text":1263},{"id":1432,"depth":1147,"text":763},{"id":1528,"depth":1147,"text":850},{"id":1711,"depth":1147,"text":961},{"id":1787,"depth":1147,"text":1788},{"id":1941,"depth":1136,"text":144},{"id":2011,"depth":1136,"text":147,"children":2422},[2423,2424,2425,2426,2427],{"id":2016,"depth":1147,"text":2017},{"id":2083,"depth":1147,"text":2084},{"id":2147,"depth":1147,"text":2148},{"id":2180,"depth":1147,"text":2181},{"id":2239,"depth":1147,"text":2240},{"id":2282,"depth":1136,"text":2283},{"id":2304,"depth":1136,"text":2305},{"id":2338,"depth":1136,"text":2339},"Set up Flutter on Windows or macOS with Git, Android Studio and an Android Virtual Device, configure Visual Studio Code, and run your first app.","md",null,{},{"icon":36},{"title":33,"description":2431},"iqSy3VXeuM_HKqQogLKsofaZRDN28VeaNLboozIeorw",[2439,2441],{"title":28,"path":29,"stem":30,"description":2440,"icon":31,"children":-1},"How Flutter's popularity grew against Swift, Kotlin and React Native, and how Alibaba, BMW, ByteDance, eBay, Toyota and Google use it.",{"title":38,"path":39,"stem":40,"description":2442,"icon":41,"children":-1},"How Flutter turns widgets into pixels, the difference between stateless, stateful and inherited widgets, and what BuildContext is.",1795696849723]