All language subtitles for 002 Boilerplate App Code_en

af Afrikaans
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian Download
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,720 --> 00:00:04,050 In the last section, we started talking about the next application we're going to be working on. 2 00:00:04,440 --> 00:00:08,330 I'm now back at my terminal, still inside of my kind of workspace directory. 3 00:00:08,910 --> 00:00:13,470 I'm going to change into the login stateful that we just created, login stateful folder excuse me, 4 00:00:13,470 --> 00:00:14,280 that we just created. 5 00:00:15,150 --> 00:00:20,730 And then I will start at my code editor inside there, I'll then flip back over to my terminal and I'm 6 00:00:20,730 --> 00:00:24,960 going to execute the command that will get our application running on our emulator as well. 7 00:00:25,470 --> 00:00:29,610 So inside of my log stateful directory, I will run, flutter, run. 8 00:00:30,790 --> 00:00:35,410 OK, so it's going to start up new application we just generated and install it onto the emulator. 9 00:00:36,540 --> 00:00:39,670 We'll let that kind of run for just a little bit while that's going. 10 00:00:39,710 --> 00:00:43,380 I'll flip back over to my code editor and we'll get started on our project. 11 00:00:44,350 --> 00:00:49,270 Now we have all these different files and folders that were automatically generated for us again, but 12 00:00:49,270 --> 00:00:54,400 as usual, all the code that you and I are going to write is can be placed inside this Leyb directory 13 00:00:54,880 --> 00:00:55,580 inside there. 14 00:00:55,600 --> 00:01:02,140 We have that main file that was automatically generated for us now as have as was the case in the last 15 00:01:02,140 --> 00:01:02,760 project. 16 00:01:02,770 --> 00:01:06,210 I don't really like using all this default code that we get for free. 17 00:01:06,460 --> 00:01:12,280 So I'm going to select everything inside of here and delete it and we'll just start 100 percent from 18 00:01:12,280 --> 00:01:12,820 scratch. 19 00:01:13,950 --> 00:01:19,350 Now, at the top of this file, I'll first begin by importing that material thought dirt file from the 20 00:01:19,350 --> 00:01:27,480 flutter library, so I'll do import package flutter material like so. 21 00:01:28,590 --> 00:01:33,120 From this material dirt file, we get access to that run app function. 22 00:01:34,170 --> 00:01:39,210 Remember, the run out function is how we get some initial widget to appear on the screen of our device. 23 00:01:40,020 --> 00:01:45,240 So inside of here, I'll define my main function and then I will call run app. 24 00:01:45,690 --> 00:01:49,410 And of course, we need to pass in some widget right here to be rendered on the screen. 25 00:01:50,830 --> 00:01:56,170 When we first started off our last project, we wrote a lot of widget code first directly into this 26 00:01:56,170 --> 00:02:01,600 main file, but we eventually came to realize that, yeah, we should probably separate out all those 27 00:02:01,600 --> 00:02:04,600 widgets into different files inside of our live directory. 28 00:02:05,150 --> 00:02:10,180 So I'm going to immediately create a new file that's going to house a new widget that's going to serve 29 00:02:10,180 --> 00:02:15,140 kind of as the root widget of our application to do so in my live directory. 30 00:02:15,250 --> 00:02:18,130 I'll make a new folder called Sarsae. 31 00:02:19,040 --> 00:02:23,300 And then inside there, I'll make a new file called App Darte. 32 00:02:24,300 --> 00:02:29,940 Great, it's now inside of Abu Dhabi is where you and I are going to create our kind of default widget 33 00:02:29,940 --> 00:02:31,980 or the first widget that will be rendered on the screen. 34 00:02:32,780 --> 00:02:36,950 At the top will first again import our package of flutter. 35 00:02:37,990 --> 00:02:38,950 Material that darte. 36 00:02:40,970 --> 00:02:47,420 I'll create a new class that I'm going to call app, and that's going to extend the stateless widget. 37 00:02:49,290 --> 00:02:53,940 Then we'll define the one method that we are required to define inside of here, which is the build 38 00:02:53,940 --> 00:02:58,590 method, and this is where we're going to return some other widgets that will be displayed on the screen. 39 00:02:59,370 --> 00:03:04,350 The build method is always called with that context argument, which again, I know said it many times, 40 00:03:04,350 --> 00:03:07,040 but we're going to talk about what that's for here pretty soon. 41 00:03:08,070 --> 00:03:11,790 And then inside of here, I'm going to create a new material app. 42 00:03:13,550 --> 00:03:16,940 I'll give it a title of something like Log me in. 43 00:03:19,130 --> 00:03:20,510 And I'll give it a home. 44 00:03:21,860 --> 00:03:23,960 That is a scaffold widget. 45 00:03:25,190 --> 00:03:33,560 And inside there, I'll put some text or some body, I'll give it some text of show a form here like 46 00:03:33,560 --> 00:03:33,830 so. 47 00:03:35,610 --> 00:03:39,910 OK, so now we got something to at least show up on the screen, let's flip back over to our main dirt 48 00:03:39,930 --> 00:03:40,350 file. 49 00:03:40,590 --> 00:03:44,940 We will import this and then make sure that we pass it off to the run app function. 50 00:03:45,720 --> 00:03:48,390 So back inside of me and start at the top. 51 00:03:48,390 --> 00:03:56,250 I will import SIRC Abdah Dirt and it will pass that thing off to the runout function like so. 52 00:03:57,720 --> 00:04:02,130 OK, so we just went through all that pretty quickly, but it's all the very similar stuff to what we 53 00:04:02,160 --> 00:04:05,790 did in our last application, we've now got a main file. 54 00:04:05,790 --> 00:04:07,290 We've got an important file. 55 00:04:07,530 --> 00:04:13,410 The app creates a material app when we create a material app that gives us a couple of very default 56 00:04:13,410 --> 00:04:17,220 elements that we would expect to have in any mobile application, such as navigation. 57 00:04:17,850 --> 00:04:22,530 And we say our scene right here that we want the default component to show up on the screen to be a 58 00:04:22,530 --> 00:04:26,340 scaffold that has a body of some amount of text. 59 00:04:27,220 --> 00:04:29,280 So if I now go back over to my terminal. 60 00:04:30,610 --> 00:04:34,210 I should be able to hit shift are to do a full restart at the application. 61 00:04:37,330 --> 00:04:42,640 Wait for our reload and it's kind of hidden up there, but you can definitely see that it says show 62 00:04:42,640 --> 00:04:43,230 form here. 63 00:04:43,420 --> 00:04:44,830 So good place to get started. 64 00:04:45,010 --> 00:04:48,940 Let's come back in the next section and we'll talk about the login form that we're going to be working 65 00:04:48,940 --> 00:04:49,150 on. 6744

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.