Solution: Styling MovieTile Text
In this lesson, you'll explore the solution to the "Styling MovieTile Text" challenge.
We'll cover the following
Solution: Styling MovieTile text
The TextStyle
widget
Set the movie overview’s fontSize
to 20 and the fontStyle
to FontStyle.italic
.
style: TextStyle(
fontSize: 20,
fontStyle: FontStyle.italic,
),
Using TextStyle
widget
Add this style to overview text:
Padding(
padding: const EdgeInsets.all(8.0),
child: Text(
movies[index].overview,
//SOLUTION
style: TextStyle(
fontSize: 20,
fontStyle: FontStyle.italic,
),
),
Get hands-on with 1400+ tech skills courses.