All language subtitles for 008 Displaying Buttons with RaisedButton_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 Download
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,550 --> 00:00:06,520 In the last section, we added in our password field method, so that is also displaying a text form 2 00:00:06,520 --> 00:00:11,680 field, we're now going to move on to our submit button method, which is supposed to show a form at 3 00:00:11,680 --> 00:00:12,960 the bottom of the screen. 4 00:00:13,780 --> 00:00:19,020 So as a quick reminder, to show a button, we're going to use a built in flutter widget called the 5 00:00:19,030 --> 00:00:20,850 Raised Button Widget. 6 00:00:21,640 --> 00:00:25,720 Let's very quickly check out the documentation for this raised button and get a better idea of how it 7 00:00:25,720 --> 00:00:26,140 works. 8 00:00:27,130 --> 00:00:32,920 So back over on my FLEDER documentation page, I'll do a quick search for crazed button. 9 00:00:34,770 --> 00:00:38,800 And on the documentation, I bet you can guess what we're going to look up. 10 00:00:39,480 --> 00:00:40,430 Yup, that's right. 11 00:00:40,470 --> 00:00:41,970 We're going to look up the constructor. 12 00:00:42,720 --> 00:00:43,230 All right. 13 00:00:43,230 --> 00:00:44,640 So here's our constructor right here. 14 00:00:45,120 --> 00:00:49,560 So when we create a raised button, there's a tremendous number of properties that we can pass in to 15 00:00:49,560 --> 00:00:51,660 customize how the button behaves. 16 00:00:51,930 --> 00:00:56,680 Or maybe a better term here would be to say we're customizing how the button looks. 17 00:00:57,330 --> 00:01:02,160 So if you take a close look at all these different parameters, the raised button constructor is really 18 00:01:02,160 --> 00:01:06,300 all about customizing the styling on the button that gets displayed. 19 00:01:06,660 --> 00:01:12,090 And there's very little that customizes the text that shows inside the button or what happens when we 20 00:01:12,090 --> 00:01:12,750 press the button. 21 00:01:13,260 --> 00:01:18,420 Those do exist in here, but all the vast, vast, vast majority of options that we can customize are 22 00:01:18,420 --> 00:01:21,390 all about the display properties of the button itself. 23 00:01:21,900 --> 00:01:26,730 So you'll see things like customizing the padding or the elevation which affects the shadowing behind 24 00:01:26,730 --> 00:01:31,120 the button, the color, whether or not it's disabled, all that other kind of good stuff. 25 00:01:32,190 --> 00:01:36,840 So to actually get some text to show up inside this button, you'll notice that there's not a distinct 26 00:01:36,840 --> 00:01:38,460 like text property. 27 00:01:39,060 --> 00:01:46,050 Instead, to show some text inside of various button we have to pass in a text widget to the child property. 28 00:01:46,230 --> 00:01:51,330 So this is another widget that accepts a child widget and displays that child inside itself. 29 00:01:52,370 --> 00:01:57,830 So I'm going to flip back over to my editor, I'm going to find my submit button method right here and 30 00:01:57,830 --> 00:01:59,930 inside of it, I'm going to return. 31 00:02:01,790 --> 00:02:03,260 A raised. 32 00:02:04,320 --> 00:02:04,770 Button. 33 00:02:06,300 --> 00:02:12,120 And inside of it, I'll specify a child that has the text submit like so. 34 00:02:13,540 --> 00:02:18,310 Now, when I say the file, you'll notice that raised button has a little green warning underneath it. 35 00:02:18,610 --> 00:02:23,290 If I hover over that, it tells me very simply the parameter on Prust is required. 36 00:02:23,920 --> 00:02:30,940 So the erase button accepts a unpressed arguments to it or unpressed parameter that is supposed to be 37 00:02:30,940 --> 00:02:32,380 a callback function. 38 00:02:32,380 --> 00:02:36,240 And you'll notice here in the documentation, it is marked as a required parameter. 39 00:02:36,670 --> 00:02:41,710 So any time we create a reset button, we have to pass in a callback function to this unpressed parameter 40 00:02:41,710 --> 00:02:45,010 right here, or we're going to get an error message when we try to run this thing. 41 00:02:45,830 --> 00:02:51,800 So back inside my code editor, I'm going to add on and on Prust parameter, and I'm going to assign 42 00:02:51,800 --> 00:02:53,750 to it an empty function like so. 43 00:02:54,050 --> 00:02:56,690 So at this point, we're not really doing anything with the button. 44 00:02:56,930 --> 00:02:58,720 I just want to get it to show up on the screen. 45 00:02:59,630 --> 00:03:00,650 So I'm going to save this. 46 00:03:02,400 --> 00:03:07,500 And then we'll flip back over to our terminal, yeah, we'll do our quick refresher, quick test. 47 00:03:08,670 --> 00:03:09,630 So I'm going to save. 48 00:03:11,290 --> 00:03:12,670 And then inside my emulator. 49 00:03:13,790 --> 00:03:19,820 I should see a button, OK, we forgot one step, or at least I did, we just added in some configuration 50 00:03:19,820 --> 00:03:25,070 for Simit button, but we never actually uncommented it's called up here inside of our build method. 51 00:03:25,590 --> 00:03:30,320 So up at the build method, I'm going to make sure I uncommented submit button and then we'll do our 52 00:03:30,320 --> 00:03:30,890 refresh. 53 00:03:34,730 --> 00:03:37,940 All right, so there's the restart and there's the button. 54 00:03:38,510 --> 00:03:39,920 OK, well, hey, it's a button. 55 00:03:40,340 --> 00:03:46,100 You can tell it's got a little bit of shadowing underneath it and that's where the term raised button 56 00:03:46,100 --> 00:03:46,700 comes from. 57 00:03:47,120 --> 00:03:51,710 The word raised means to indicate that this is kind of a button that pops out of the screen a little 58 00:03:51,710 --> 00:03:52,010 bit. 59 00:03:52,010 --> 00:03:53,540 Thanks to the shadowing styling. 60 00:03:54,080 --> 00:03:58,000 However, the pun itself is really smashed up against the password field. 61 00:03:58,010 --> 00:04:02,390 So I think we probably need to add in some margin or some padding to this thing on the top to get it 62 00:04:02,390 --> 00:04:04,530 to stand off of the password element. 63 00:04:05,240 --> 00:04:06,490 Let's take a quick pause right here. 64 00:04:06,500 --> 00:04:09,500 We'll come back to the next section and add that little bit of spacing in. 65 00:04:09,650 --> 00:04:11,170 So I'll see you in just a minute. 6336

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