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),
overflow: TextOverflow.ellipsis,
style: TextStyle(
fontWeight: FontWeight.w300,
color: textColor.withOpacity(.65),
),
),

View File

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

View File

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

View File

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