In this challenge, you will add several texts to different parts of the app. You will add three texts in a Column to our FoodDetails screen. You will also add extra text to the ProfileBar to indicate a welcome message. Finally create a FoodDetailMeasure Composable that will receive three parameters: icon, text and iconColor. This Composable will have an icon and text arranged horizontally.
This content was released on Aug 1 2023. The official support period is 6-months
from this date.
In this challenge, you will add several texts to different parts of the app. You will add three texts in a Column to our FoodDetails screen. You will also add extra text to the ProfileBar to indicate a welcome message. Finally create a FoodDetailMeasure Composable that will receive three parameters: icon, text and iconColor. This Composable will have an icon and text arranged horizontally.
Cinema mode
Mark complete
Download course materials
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
Previous episode: 05. Use a Button
Next episode: Part 1 Quiz: Make a Simple Interface
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
Now, you have learned how to add Texts and order Composables within your application. In this challenge episode, you are tasked to do the following:
Food Details
Create a new Kotlin file called FoodDetails.kt in the screens package.
Add a new Composable called FoodDetails that will receive a foodId parameter which will be a nullable Int with the default value being 0.
Add a Column to the FoodDetails Composable.
Add a Text Composable to the Column with the text representing the food name.
Add another Text Composable to the Column with the text indicating the text: “About Food”.
Finally, add a Text Composable to the Column with the text representing the food description.
Food Details Measure
Additionally, you will need to setup a custom Composable for the FoodDetailMeasure that will receive three parameters: icon, text and iconColor. This Composable will have an icon and text arranged horizontally.
Rpeiyu a niq Sogrij tufe korqax SiejNihaexViiwapo.gp ak klu sulxeyabxk piwfalo.
Ukl u nok Geqgetigda kalhik DeeqHiteujDoawona wzaq vecd zihuaho lvjie pemufenawh: ayaz, pupq otm ayifLizer.
Ufj e Yuf mu hva JuasTomaapQouxeve Doxqajofmo (Epnuqa iqq ukoyw ica eqibqoh wesxurubhp gokkyik).
Great job, our application is beginning to take shape. In the next episode, we will learn more about how we can organize our application uisng advanced Row and Column modifiers.
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.