Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

body1 is depreciated. #9

Open
levimake opened this issue May 31, 2020 · 2 comments
Open

body1 is depreciated. #9

levimake opened this issue May 31, 2020 · 2 comments

Comments

@levimake
Copy link

levimake commented May 31, 2020

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 of body1

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.

@victorbjorklund
Copy link

Note that body1 becomes bodyText2 and body2 becomes bodyText2. I missed that at first.

@coletoncodes
Copy link

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), ),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants