Cov txheej txheem:

Kuv yuav qhib flutter inspector li cas?
Kuv yuav qhib flutter inspector li cas?

Video: Kuv yuav qhib flutter inspector li cas?

Video: Kuv yuav qhib flutter inspector li cas?
Video: koj deev kuv qhib tshiab tsis ris kuv txiaj 9/25/2022 2024, Kaum ib hlis
Anonim

1- Qhib Lub Command Palette (Ctrl + Ua haujlwm + P (Cmd + Shift + P ntawm macOS)). 2- Xaiv cov Flutter : Tshawb xyuas Widget hais kom ua thiab nias Enter. 3- Coj mus rhaub rau txhua qhov widget hauv emulator.

Tom qab ntawd, kuv yuav siv flutter inspector li cas?

Txhawm rau daws qhov teeb meem layout, khiav lub app hauv hom kev debug thiab qhib lub tus neeg soj ntsuam los ntawm nias lub Flutter Inspector tab ntawm DevTools toolbar. Nco tseg: Koj tseem tuaj yeem nkag mus rau Flutter soj ntsuam ncaj qha los ntawm Android Studio / IntelliJ, tab sis koj yuav nyiam qhov dav dav dua thaum khiav nws los ntawm DevTools hauv qhov browser.

Tom qab ntawd, lo lus nug yog, ua li cas koj khiav lub app flutter? Nruab Flutter thiab Dart plugins

  1. Pib Android Studio.
  2. Qhib plugin nyiam (Cov Ntaub Ntawv> Chaw> Plugins).
  3. Xaiv Xauj cov chaw cia khoom, xaiv Flutter plugin thiab nyem Nruab.
  4. Nyem Yes thaum prompted rau nruab Dart plugin.
  5. Nyem Restart thaum hais kom ua.

Tsis tas li, kuv yuav pib qhov project flutter li cas?

Tsim ib qhov project Flutter tshiab

  1. Pib VS Code.
  2. Invoke View> Command Palette…
  3. Ntaus 'flutter', thiab xaiv 'Flutter: New Project' nkaus.
  4. Sau lub npe qhov project (piv txwv li myapp), thiab nias Enter.
  5. Qhia ib qhov chaw los tso qhov project, thiab nias lub pob xiav OK.

Kuv yuav tshuaj xyuas cov khoom hauv Visual Studio li cas?

1 Teb

  1. Ceev Saib Qhov rai. Txoj nyem rau txhua qhov chaw ntawm lub qhov rais. Hauv ntawv qhia zaub mov xaiv "Quick Watch"
  2. Ntxiv Saib Qhov rai. Visual Studio ntawv qhia zaub mov -> Debug -> Windows -> Saib -> Saib 1. Nyob rau hauv qhib Saib WIndow ntaus npe teb qhov no thiab nias Enter.
  3. Qhov rai tam sim ntawd. Visual Studio menu -> Debug -> Windows -> Qhov rai tam sim.

Pom zoo: