Reputation: 718
I'm new to Flutter and Dart. I'm not sure why I'm getting this syntax error while applying color to the Text widget using ThemeData.
Below are the details of my Flutter and Dart:
Flutter 2.2.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 02c026b03c (3 weeks ago) • 2021-05-27 12:24:44 -0700
Engine • revision 0fdb562ac8
Tools • Dart 2.13.1
Upvotes: 0
Views: 291
Reputation: 302
Theme.of(context).textTheme.bodyText1.color.withOpacity(0.6)
Upvotes: 2