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
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
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
Russian
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
0 All right. 1
So we you mentioned in the lesson, it's now time for a challenge. 2
And in this challenge, I want you to use what you've learned about using packages from the Flutter packages 3
website and incorporating them into our quiz app. 4
The package that we're going to be interested in is this thing called RFlutter Alert. And what it does 5
is it's a super simple way of adding in alerts, basic ones or even really fancy ones. 6
And it can be implemented just in a single line 7
if we're just after the basic alert. And that's exactly what we want in this case. We want to be able 8
to show the user that they've reached the end of the quiz and just show them the alert to tell them 9
that this is the end, and then we're going to reset the question banked and then go back to the beginning 10
of the quiz. 11
So in this lesson, you will be able to download the starting file for this challenge and it's got everything 12
that we've done so far. 13
But it just means that we're all on the same page. 14
But more importantly, I've added in a whole bunch of to dos in here so that you can go into the to-do 15
pane, and you should be able to follow each of the to-dos step by step. So you can see that we currently 16
have six to-dos in our project. 17
And if you expand all of the places where they exist, you'll see them laid out like this. 18
Now if you go ahead and start on step 1 and just double click on the to-do, it will take you to the file 19
and the location of where that to-do needs to happen. 20
So whenever you see one of these, go ahead and select the to-do line, delete it, 21
and this is where we want you to create the code and solve the challenge. 22
So the first few steps are quite easy 23
and then it gets a little bit harder later on. 24
But once you've completed all of the steps in the challenge, you should be able to run the app and we 25
should continue as we did before. 26
So we go through all the questions and we accumulate our scorekeeper and then once we get to the end, 27
the last question, once we've answered this question, we should get a popup that tells us that we've 28
finished the quiz and we've reached the end. 29
And then if you click on the cross or the cancel button, it should take you back to the beginning of 30
the quiz and empty out the score keeper. 31
So that's the goal. 32
And there's just a couple of tips that I want to talk about before you get started. 33
Firstly is that some of the to-dos are quite long. 34
So if they're going all the way to the end and you're having to scroll around to be able to see it, 35
a quick tip is just to right click in the gutter here, and click on a soft-wrap either all files or current 36
file just so that we get this little arrow and instead of it being on one line, it comes down and shows 37
it to you all on many lines and you can see all of it all in one go. 38
That just makes it a little bit easier for you. 39
And once you've completed the challenge and you're happy with what you've done, then you can also check 40
out the solution which I will add to the next lesson. 41
But I really recommend having a good go at the challenge and knocking out those to-dos step by step. 42
And I hope it will be fun. 43
So once you really, get started by downloading the starting project.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.