Open levimake opened 4 years ago
Note that body1 becomes bodyText2 and body2 becomes bodyText2. I missed that at first.
Note that body1 becomes bodyText2 and body2 becomes bodyText2. I missed that at first.
Yup, I missed it too. The code should read: textTheme: TextTheme( bodyText2: TextStyle(color: Colors.white), ),
The TextTheme constructors from material design 2014 seems depreciated and new constructors could be used. Check them here : https://api.flutter.dev/flutter/material/TextTheme-class.html
bodyText1
is expected instead ofbody1
textTheme: TextTheme(body1: TextStyle(color: Colors.white)
needs to be changed from
textTheme: TextTheme(bodyText2: TextStyle(color: Colors.white)
Thanks. Not a big issue. Just to keep the course updated. I thank Angela for making me looking up the docs and fixing the minor bugs.