Skip to content

Commit

Permalink
fix: #890 - use setting name as attribute (#1383)
Browse files Browse the repository at this point in the history
  • Loading branch information
cli1005 authored Mar 29, 2022
1 parent ade74be commit 060dbc2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/smooth_app/lib/widgets/attribute_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ class AttributeButton extends StatelessWidget {
const double horizontalPadding = LARGE_SPACE;
final double screenWidth =
MediaQuery.of(context).size.width - 2 * horizontalPadding;
final TextStyle style = themeData.textTheme.headline3!;
final TextStyle styleLabel = themeData.textTheme.bodyMedium!;
final TextStyle styleButton = themeData.textTheme.headline4!;
return Padding(
padding: const EdgeInsets.symmetric(horizontal: horizontalPadding),
child: Row(
Expand All @@ -43,7 +44,7 @@ class AttributeButton extends StatelessWidget {
children: <Widget>[
SizedBox(
width: screenWidth * .45,
child: Text(attribute.name!, style: style),
child: Text(attribute.settingName!, style: styleLabel),
),
SizedBox(
width: screenWidth * .45,
Expand All @@ -52,7 +53,7 @@ class AttributeButton extends StatelessWidget {
productPreferences
.getPreferenceImportanceFromImportanceId(importanceId)!
.name!,
style: style.copyWith(color: Colors.white),
style: styleButton.copyWith(color: Colors.white),
),
style: ElevatedButton.styleFrom(
primary: _colors[importanceId],
Expand Down

0 comments on commit 060dbc2

Please sign in to comment.