Your Second Flutter App

Nov 30 2021 · Dart 2.13, Flutter 2.2.3, Visual Studio Code

Part 2: Show a List

14. Challenge: Show More Data

Episode complete

Play next episode

Next
About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 13. Use a List Tile Next episode: 15. Conclusion

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.

Learn more Already a subscriber? Sign in.

Transcript: 14. Challenge: Show More Data

It’s time for another coding challenge!

Your challenge is to pause the video, and add the course domainsString property to each ListTile. This should go underneath the course name on the ListTile. There’s actually a property on the ListTile just for this. If you’re not sure on where to add the new property to the ListTile, check out the ListTile documentation on the flutter.dev website for some ideas. All right - pause the video, and good luck.

How was that challenge? Hopefully it wasn’t too bad. You’ve set the course name as the title. If you want to put some text underneath the title, you use the subtitle property. Open your project in progress or open up the starter project for this course. Open the courses_page that you can find in the courses subfolder in the ui folder.

Find your ListTitle widget and underneath the title property, add the subtitle property like so.

subtitle: Text(course.domainsString),

And that’s it. Hot reload your app and you’ll the domains underneath the title.