Skip to content

Commit

Permalink
Fix redundant newline bug for weight column in records tab (#302)
Browse files Browse the repository at this point in the history
* Fix redundant newline bug for weight column in records tab

* Bump v0.8.4+40
  • Loading branch information
andreped authored Sep 23, 2024
1 parent 73bc378 commit 20ffdc5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions lib/widgets/records.dart
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ class _RecordsTabState extends State<RecordsTab> {
child: GestureDetector(
onTap: () => _toggleSorting(true),
child: Row(
mainAxisAlignment: MainAxisAlignment
.end, // Align to the right
mainAxisAlignment:
MainAxisAlignment.end,
children: [
Text(
'Weight [${widget.isKg ? 'kg' : 'lbs'}]',
Expand Down Expand Up @@ -271,13 +271,12 @@ class _RecordsTabState extends State<RecordsTab> {
DataCell(Text(exercise)),
DataCell(
Container(
alignment: Alignment
.centerRight, // Align to the right
padding: EdgeInsets.only(
right:
16.0), // Adjust padding as needed
alignment: Alignment.centerRight,
padding: EdgeInsets.only(right: 16.0),
child: Text(
'${displayWeight.toStringAsFixed(1)} x $reps reps',
softWrap: false,
overflow: TextOverflow.ellipsis,
),
),
),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 0.8.3+39
version: 0.8.4+40

environment:
sdk: '>=3.4.3 <4.0.0'
Expand Down

0 comments on commit 20ffdc5

Please sign in to comment.