Skip to content

Commit eec799f

Browse files
committed
fix: not showing minus sign in lrc offset dialog
1 parent a48f1a4 commit eec799f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/ui/dialogs/set_lrc_dialog.dart

+5-3
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,13 @@ void showLRCSetDialog(Playable item, Color colorScheme) async {
236236
),
237237
Obx(
238238
(context) {
239-
final ms = newOffset.valueR.remainder(1000).abs().toString();
240-
final msText = ms.length > 2 ? ms.substring(0, 2) : ms;
241239
final off = newOffset.valueR;
240+
final ms = off.remainder(1000).abs().toString();
241+
final msText = ms.length > 2 ? ms.substring(0, 2) : ms;
242+
final secondsText = off.abs().milliSecondsLabel;
243+
final prefix = off < 0 ? '-' : '';
242244
return Text(
243-
"${off.milliSecondsLabel}.$msText",
245+
"$prefix$secondsText.$msText",
244246
style: namida.textTheme.displaySmall,
245247
);
246248
},

pubspec.yaml

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: namida
22
description: A Beautiful and Feature-rich Music Player, With YouTube & Video Support Built in Flutter
33
publish_to: "none"
4-
version: 4.9.82-beta+250210200
5-
version: 4.9.82-beta+250210210
6-
version: 4.9.82-beta+250210200
4+
version: 4.9.83-beta+250210211
75

86
environment:
97
sdk: ">=3.6.0 <4.0.0"

0 commit comments

Comments
 (0)