All language subtitles for 010 Named Parameter Clarification_en

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
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
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (SoranĂ®)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,790 --> 00:00:05,410 In the last section, we got some text to show up inside of our APAs at the top of the screen, we're 2 00:00:05,410 --> 00:00:09,970 not going to move on to making sure that we get a button that our users can press on the bottom right 3 00:00:09,970 --> 00:00:11,420 hand corner of the screen as well. 4 00:00:12,280 --> 00:00:16,600 Let's first take a look at the documentation for our scaffolded class and see if there's anything in 5 00:00:16,600 --> 00:00:21,520 there that can help us with putting this button on the screen at the proper location, specifically 6 00:00:21,670 --> 00:00:22,510 down here at the bottom. 7 00:00:22,510 --> 00:00:22,840 Right. 8 00:00:23,770 --> 00:00:29,170 So I'm going to go back over to my flitter documentation, I've already navigated back over to the scaffold 9 00:00:29,170 --> 00:00:29,680 class. 10 00:00:29,950 --> 00:00:35,140 If you've navigated away, remember, you can always search for scaffold on the top right hand side. 11 00:00:36,490 --> 00:00:42,130 Once I'm at the scaffold class, I'm going to scroll down to the constructor again, so I'll go down, 12 00:00:42,130 --> 00:00:42,760 down, down. 13 00:00:45,020 --> 00:00:51,690 Here's my scaffold constructor right now, you and I are only making use of the named parameter of APSA. 14 00:00:52,460 --> 00:00:58,400 So back inside of our code editor, we had created our scaffold and we created an app, our widget, 15 00:00:58,400 --> 00:01:01,340 and assigned it to that named app, our parameter. 16 00:01:02,430 --> 00:01:08,160 So now to get a button on the bottom right hand side the screen, we're going to create a second widget 17 00:01:08,400 --> 00:01:12,120 and assign it to this floating action button parameter right here. 18 00:01:12,980 --> 00:01:19,250 If we pass in a widget on this floating action button name parameter, the scaffold widget will automatically 19 00:01:19,250 --> 00:01:23,810 take that widget and display it at the bottom right hand side, which is exactly what you and I are 20 00:01:23,810 --> 00:01:24,440 trying to do. 21 00:01:26,530 --> 00:01:29,980 Now, the other thing I want to mention here, before we go away from the documentation, I'm going 22 00:01:29,980 --> 00:01:31,210 to scroll up just a little bit. 23 00:01:33,240 --> 00:01:39,870 To this list of widgets right here, one of the widgets that you'll see listed is a widget called Floating 24 00:01:39,870 --> 00:01:40,650 Action Button. 25 00:01:41,400 --> 00:01:45,300 So we looked at the documentation for this or at least this line a couple of videos ago. 26 00:01:45,570 --> 00:01:51,180 This widget will display a circular button that is typically shown and the bottom right corner of the 27 00:01:51,180 --> 00:01:51,600 screen. 28 00:01:52,470 --> 00:01:58,860 So if we create a new widget called the Floating Action Button and we assign it to that name parameter, 29 00:01:58,860 --> 00:02:03,150 a floating action button, presumably we're going to get our button at the bottom right hand side. 30 00:02:03,540 --> 00:02:05,180 So let's try this out right now. 31 00:02:06,670 --> 00:02:11,860 I'm going to flip back over to my code editor, I'm going to find my scaffold widget and I'm going to 32 00:02:11,860 --> 00:02:17,200 pass in an additional named parameter, so I'll say floating action. 33 00:02:17,200 --> 00:02:18,640 Oops, floating. 34 00:02:19,590 --> 00:02:20,640 Action button. 35 00:02:21,560 --> 00:02:28,700 And then I'm going to assign to that a widget of floating action button like so. 36 00:02:30,210 --> 00:02:35,490 OK, so right here, I want to take a quick pause, just to clear up a little bit of confusion that 37 00:02:35,490 --> 00:02:41,610 you might have right now, there's two things about this line of code and this line of code that might 38 00:02:41,610 --> 00:02:43,310 be a little bit confusing right now. 39 00:02:44,370 --> 00:02:48,780 So the first thing you might be curious about is how are we able to make reference to something called 40 00:02:48,780 --> 00:02:54,180 floating action button and abar when we clearly have not defined those inside this file. 41 00:02:55,020 --> 00:03:01,050 So we are able to reference APAs and floating action button because they were added to the scope of 42 00:03:01,050 --> 00:03:04,970 this file for free when we added that import statement at the top of the file. 43 00:03:05,820 --> 00:03:12,600 So the floating button, the UPA and for that matter, material, scaffold and text were all imported 44 00:03:12,600 --> 00:03:15,570 into our application thanks to this import statement up here. 45 00:03:16,000 --> 00:03:18,750 That's why we were able to reference these different classes. 46 00:03:20,440 --> 00:03:25,630 Now, the second thing you might be a bit curious about is the distinction between this name of floating 47 00:03:25,630 --> 00:03:29,250 action button and the word floating action button over here. 48 00:03:29,680 --> 00:03:31,030 So let's clear that up as well. 49 00:03:31,780 --> 00:03:36,460 On the left hand side, we wrote out floating action button with a lowercase F. 50 00:03:37,540 --> 00:03:42,640 Because we are passing that as a parameter to the scaffold widget right here. 51 00:03:43,180 --> 00:03:48,000 So we were just two seconds ago, we were looking at the documentation for the scaffold constructor 52 00:03:48,460 --> 00:03:54,610 and this documentation said, oh, yeah, you can pass me a floating action button parameter. 53 00:03:54,910 --> 00:03:58,040 And if you do, I'll do my best to show that on the screen for you. 54 00:03:58,690 --> 00:04:01,630 So that's why we added in floating action button right here. 55 00:04:02,610 --> 00:04:08,910 Then to specify exactly what widget we wanted the scaffold to show when it tried to show something on 56 00:04:08,910 --> 00:04:13,620 the bottom right hand side of the screen, we passed in the flooding action button over here, which 57 00:04:13,620 --> 00:04:17,970 is the name of another widget that is provided to us for free by Flutter. 58 00:04:18,920 --> 00:04:21,800 So that's why you're seeing these kind of duplicate names right here. 59 00:04:21,829 --> 00:04:23,210 They don't have to be identical. 60 00:04:23,360 --> 00:04:26,860 It just happens that that is how Flutter decided to name these things. 61 00:04:27,380 --> 00:04:30,320 The one on the left is tied to the scaffold class. 62 00:04:30,590 --> 00:04:35,780 The one on the right is the name of a unique widget that can be used to display a button on the bottom 63 00:04:35,780 --> 00:04:37,250 right hand corner of the screen. 64 00:04:38,730 --> 00:04:45,150 OK, so hopefully that clears up possibly a little bit of confusion now you'll notice that if I hover 65 00:04:45,150 --> 00:04:47,610 over this green squiggly right here. 66 00:04:48,460 --> 00:04:52,740 I get this little warning and it says the parameter of on press is required. 67 00:04:53,110 --> 00:04:54,910 So let's take a quick pause right here. 68 00:04:55,090 --> 00:04:59,140 We'll continue the next section and we'll figure out exactly what that error message or what that little 69 00:04:59,140 --> 00:04:59,920 warning means. 7253

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