Review use of fontWeight

This commit is contained in:
Hillel Coren 2020-08-26 17:39:41 +03:00
parent b3cd82289e
commit 044e33c5d5
4 changed files with 6 additions and 9 deletions

View File

@ -23,7 +23,6 @@ class FieldGrid extends StatelessWidget {
localization.lookup(field), localization.lookup(field),
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w300,
color: textColor.withOpacity(.65), color: textColor.withOpacity(.65),
), ),
), ),

View File

@ -575,7 +575,6 @@ class _LoginState extends State<LoginView> {
_loginError, _loginError,
style: TextStyle( style: TextStyle(
color: Colors.red, color: Colors.red,
fontWeight: FontWeight.bold,
), ),
), ),
), ),

View File

@ -165,7 +165,7 @@ class _DashboardChartState extends State<DashboardChart> {
Text(localization.lookup(dataGroup.name), Text(localization.lookup(dataGroup.name),
style: theme.textTheme.headline5.copyWith( style: theme.textTheme.headline5.copyWith(
color: isSelected ? Colors.white : null, color: isSelected ? Colors.white : null,
fontWeight: FontWeight.w400)), )),
SizedBox(height: 4.0), SizedBox(height: 4.0),
Text( Text(
formatNumber(dataGroup.total, context, formatNumber(dataGroup.total, context,
@ -183,7 +183,6 @@ class _DashboardChartState extends State<DashboardChart> {
: (isIncrease : (isIncrease
? Colors.green ? Colors.green
: Colors.red), : Colors.red),
fontWeight: FontWeight.bold,
), ),
) )
: SizedBox(), : SizedBox(),

View File

@ -548,10 +548,10 @@ class EmailPreview extends StatelessWidget {
padding: const EdgeInsets.all(14), padding: const EdgeInsets.all(14),
child: Text( child: Text(
subject, subject,
style: Theme.of(context).textTheme.bodyText1.copyWith( style: Theme.of(context)
color: Colors.black, .textTheme
fontWeight: FontWeight.w700, .bodyText1
), .copyWith(color: Colors.black),
), ),
), ),
Expanded( Expanded(