Skip to content

Commit

Permalink
chore: minor debugs
Browse files Browse the repository at this point in the history
  • Loading branch information
thesun901 committed Jan 19, 2025
1 parent ef71fe7 commit e3bae1c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,16 @@ class MyAudioPlayer extends HookWidget {
[audioPlayer],
);

Future<void> togglePlayPause() async {
if (isPlaying.value) {
await audioPlayer.pause();
} else {
await audioPlayer.play(UrlSource(audioUrl));
}
}

Future<void> seeokAudio(double value) async {
final position = Duration(seconds: value.toInt());
await audioPlayer.seek(position);
}
final togglePlayPause = useCallback(
() async {
if (isPlaying.value) {
await audioPlayer.pause();
} else {
await audioPlayer.play(UrlSource(audioUrl));
}
},
[audioUrl],
);

final seekAudio = useCallback(
(double value) async {
Expand Down
11 changes: 0 additions & 11 deletions lib/features/home_view/widgets/nav_actions_section.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import "dart:async";

import "package:flutter/material.dart";
import "package:flutter_riverpod/flutter_riverpod.dart";

Expand Down Expand Up @@ -42,15 +40,6 @@ class NavActionsSection extends ConsumerWidget {
),
ref.navigateAboutUs,
),
_NavActionButton(
"Digital Guide",
Icon(
Icons.accessibility,
color: context.colorTheme.whiteSoap,
size: 32,
),
() => unawaited(ref.navigateDigitalGuide(421)),
),
],
),
);
Expand Down

0 comments on commit e3bae1c

Please sign in to comment.