All language subtitles for 004 More Container Styling_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,750 --> 00:00:05,070 In the last section, we put together some boilerplate for the login screen widget and we left off on 2 00:00:05,070 --> 00:00:07,600 our build method inside the login screen state. 3 00:00:08,400 --> 00:00:13,110 So inside of our build method right here, we're going to want to show a container that's going to have 4 00:00:13,110 --> 00:00:14,320 a little bit of margin on it. 5 00:00:14,370 --> 00:00:19,710 Again, this container right here is just to get this nice margin around the edge of the screen and 6 00:00:19,710 --> 00:00:22,350 then immediately inside there will show our form. 7 00:00:22,860 --> 00:00:28,860 Let's first start with our container by itself and we'll just show some text element or something like 8 00:00:28,860 --> 00:00:33,360 that inside of the container and just make sure that everything is working as we expect. 9 00:00:34,680 --> 00:00:38,220 So back inside my editor, I'll find my build method right here. 10 00:00:40,070 --> 00:00:42,830 And I will return a container. 11 00:00:44,710 --> 00:00:50,710 I'm going to give it some margin around the outside and remember to add, Martsen, we have to create 12 00:00:50,710 --> 00:00:53,650 an edge insets object. 13 00:00:54,980 --> 00:01:00,440 And I'm going to use the all constructor, which specifies that I want some consistent marchin around 14 00:01:00,440 --> 00:01:05,510 all sides of this container, and I'm going to say that I want around 20 pixels of space. 15 00:01:07,030 --> 00:01:13,240 Then inside of the container itself, like I just said, we'll just add in a quick text widget here, 16 00:01:13,510 --> 00:01:16,540 I'll say something like a login screen. 17 00:01:18,430 --> 00:01:20,020 And then we will save this. 18 00:01:21,820 --> 00:01:27,370 You'll notice that my old method right here is still red because I've not accepted the context argument 19 00:01:27,790 --> 00:01:29,860 that's always passed into every build method. 20 00:01:30,460 --> 00:01:32,460 I know I've said like four or five times. 21 00:01:32,470 --> 00:01:37,120 Yeah, this contact stuff we'll talk about eventually when we start rebuilding this application for 22 00:01:37,120 --> 00:01:38,860 that kind of lock approach. 23 00:01:38,920 --> 00:01:40,660 I spoke about a couple of videoscope. 24 00:01:40,810 --> 00:01:43,180 That's where this context stuff starts coming into play. 25 00:01:43,210 --> 00:01:46,120 So that's where we're going to start saying, OK, here's what context is. 26 00:01:47,350 --> 00:01:51,790 OK, so this looks good for now, I'm going to save this login screen file, I'm then going to flip 27 00:01:51,790 --> 00:01:57,370 back over to the app dart file and make sure that it shows an instance of the login screen. 28 00:01:58,220 --> 00:02:07,030 So inside of darts at the very top, I will import screens, login screen dart. 29 00:02:08,820 --> 00:02:13,620 And then for my body property right here, rather than showing that text that we had before, I will 30 00:02:13,630 --> 00:02:16,530 replace it with a new login screen. 31 00:02:18,480 --> 00:02:22,590 OK, that looks good, so let's save this, I will flip back over to my emulator. 32 00:02:23,430 --> 00:02:26,130 I'll do a hard refresh and we'll see how we're doing. 33 00:02:29,990 --> 00:02:35,690 OK, so I see login screen appearing on here, and I now have a little bit more margin appearing, so 34 00:02:35,690 --> 00:02:36,740 definitely an improvement. 35 00:02:37,310 --> 00:02:41,140 Let's flip back over to our editor and we'll keep going inside of the login screen. 36 00:02:42,020 --> 00:02:42,460 All right. 37 00:02:42,470 --> 00:02:47,110 So like I just said, inside the container, we want to have this form thing right here. 38 00:02:47,120 --> 00:02:52,130 And as we had discussed, the form is going to work very closely with the text form fields to actually 39 00:02:52,580 --> 00:02:57,430 make the process of validating these inputs and getting values out of them a little bit more straightforward. 40 00:02:58,070 --> 00:03:03,110 So inside of this container that we just created inside of login screen states, we're going to replace 41 00:03:03,110 --> 00:03:05,780 text right here with a form instead. 42 00:03:06,580 --> 00:03:07,610 I'll say form. 43 00:03:09,460 --> 00:03:10,500 And then I'll open it up. 44 00:03:11,530 --> 00:03:16,630 Now we're going to end up doing a lot of stuff with the form, but to get started, we're just going 45 00:03:16,630 --> 00:03:21,040 to make a simple form with no special configuration tied to it whatsoever. 46 00:03:21,460 --> 00:03:26,290 So we're just going to try to get this stuff to appear on the screen and then we're going to come back 47 00:03:26,290 --> 00:03:32,350 and start to customize this form tag and get a better sense of how we can use it to control those inputs 48 00:03:32,350 --> 00:03:33,570 that are rendered on the screen. 49 00:03:34,180 --> 00:03:40,900 So for right now, all we really need to understand about this form is that we can give it a child to 50 00:03:40,900 --> 00:03:41,770 display on the screen. 51 00:03:42,110 --> 00:03:42,820 That's pretty much it. 52 00:03:42,820 --> 00:03:44,820 That's all we need to know for right now. 53 00:03:45,310 --> 00:03:48,250 So I can add on a child property to the same. 54 00:03:49,340 --> 00:03:54,860 And if we go back over here, remember, we want inside the form, we want a column that's going to 55 00:03:54,860 --> 00:03:58,300 show the text form widgets and the race button as well. 56 00:03:58,940 --> 00:04:03,380 So inside the form for right now, all I care about is creating a column. 57 00:04:04,850 --> 00:04:06,920 That's going to have some number of children. 58 00:04:10,090 --> 00:04:13,900 And inside this array right here is where we're going to render the. 59 00:04:14,950 --> 00:04:19,990 Text form field number one, text form field number two and the race button, so I think this is probably 60 00:04:19,990 --> 00:04:21,740 a good place to take a quick pausa. 61 00:04:21,790 --> 00:04:23,100 So let's stop right here. 62 00:04:23,110 --> 00:04:28,360 We'll come back to the next section and we'll start putting together the text form fields and the raised 63 00:04:28,360 --> 00:04:29,050 button as well. 64 00:04:29,050 --> 00:04:30,420 So I'll see you in just a minute. 6400

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