Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
We now have our button displayed on the screen, and when we press it, we see a print statement inside
of our terminal, which is definitely interesting, but the button itself does not have any icon inside
of it.
So we're going have to figure out how we somehow are going to get that plus symbol to appear inside
of here.
So the first thing I want to do is take a look at the floating action button documentation.
One more time, I'll go back over to my floating action button class right here and then back down inside
the constructor.
I'll find the list of name parameters now inside the list of parameters, you'll notice one called child
right here.
This is a name parameter that you're going to get very, very familiar with.
So there is a tremendous number of flutter widgets that you and I are going to use that except some
child widget.
If we pass in a widget to this child parameter, then the floating action button is going to attempt
to show that widget inside of itself or in this case, essentially show whatever we pass into the child
parameter inside of the button.
And that's how we're going to get that plus symbol to to show up or we have to do is pass in something
to child.
Now, this child parameter is not unique to the floating action button.
Like I said, you're going to find that there are many, many other widgets that expect to be called
with a child property.
And if we pass one in, that widget will try to show whatever we passed in inside of itself.
So I'm going to go back over to my code editor, I'll find my floating action button right here.
And then as an additional name parameter allowed in child, and then for right now, let's try passing
in some text and we'll just do a plus.
Now, put a comma at the end of that line.
OK, so I'll save this, I'll pull open my emulator, I'll restart the application.
And how are we doing?
OK, so we got the plus inside there, but you'll notice that that seems like an awfully small little
plus symbol.
I think it could definitely stand to be a little bit bigger.
So let's take a quick pause right here and we'll try to get a better sense of whether or not we're taking
this little plus symbol right here, the correct way or not.
It's a quick break, and I'll see you in just a minute.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.