Skip to content

Commit

Permalink
chore: few tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
MSOB7YY committed Nov 20, 2023
1 parent 1e35ea6 commit 6d484b7
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 33 deletions.
1 change: 1 addition & 0 deletions lib/controller/current_color.dart
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ class CurrentColor {
NamidaColor? namidaColor;

final trColors = await getTrackColors(track.track);
if (track.track != Player.inst.nowPlayingTrack) return; // -- check current track
_namidaColorMiniplayer.value = trColors.color;

if (settings.autoColor.value) {
Expand Down
2 changes: 1 addition & 1 deletion lib/controller/ffmpeg_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ class NamidaFFMPEG {
);
}
}
dio.close();
dio.close(force: true);
currentOperations[OperationType.ytdlpThumbnailFix]!.value.currentFilePath = null;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/packages/miniplayer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2172,7 +2172,7 @@ class _TrackImage extends StatelessWidget {
return ArtworkWidget(
key: Key(track.path),
path: track.pathToImage,
thumbnailSize: Get.width,
thumbnailSize: context.width,
compressed: false,
borderRadius: 6.0 + 10.0 * cp,
forceSquared: settings.forceSquaredTrackThumbnail.value,
Expand Down
50 changes: 26 additions & 24 deletions lib/youtube/pages/yt_downloads_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -121,37 +121,39 @@ class YTDownloadsPage extends StatelessWidget {
Obx(
() => _isOnGoingSelected.value != null
? Padding(
padding: const EdgeInsets.only(bottom: 6.0),
padding: const EdgeInsets.symmetric(vertical: 12.0),
child: Row(
children: [
const SizedBox(width: 24.0),
Text(
YoutubeController.inst.youtubeDownloadTasksTempList.length.displayVideoKeyword,
style: context.textTheme.displayMedium?.copyWith(fontSize: 20.0.multipliedFontScale),
),
const Spacer(),
IconButton.filledTonal(
padding: EdgeInsets.zero,
onPressed: () {
YoutubeController.inst.youtubeDownloadTasksTempList.loop((e, index) {
YoutubeController.inst.resumeDownloadTasks(groupName: e.$1);
});
},
icon: const Icon(Broken.play, size: 20.0),
),
IconButton.filledTonal(
padding: EdgeInsets.zero,
onPressed: () {
YoutubeController.inst.youtubeDownloadTasksTempList.loop((e, index) {
YoutubeController.inst.pauseDownloadTask(
itemsConfig: [],
groupName: e.$1,
allInGroupName: true,
);
});
},
icon: const Icon(Broken.pause, size: 20.0),
),
if (_isOnGoingSelected.value == true) ...[
const Spacer(),
NamidaIconButton(
icon: Broken.play,
iconSize: 24.0,
onPressed: () {
YoutubeController.inst.youtubeDownloadTasksTempList.loop((e, index) {
YoutubeController.inst.resumeDownloadTasks(groupName: e.$1);
});
},
),
NamidaIconButton(
icon: Broken.pause,
iconSize: 24.0,
onPressed: () {
YoutubeController.inst.youtubeDownloadTasksTempList.loop((e, index) {
YoutubeController.inst.pauseDownloadTask(
itemsConfig: [],
groupName: e.$1,
allInGroupName: true,
);
});
},
),
],
const SizedBox(width: 12.0),
],
),
Expand Down
8 changes: 4 additions & 4 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,10 @@ packages:
dependency: "direct main"
description:
name: file_picker
sha256: "21145c9c268d54b1f771d8380c195d2d6f655e0567dc1ca2f9c134c02c819e0a"
sha256: "4e42aacde3b993c5947467ab640882c56947d9d27342a5b6f2895b23956954a6"
url: "https://pub.dev"
source: hosted
version: "5.3.3"
version: "6.1.1"
flutter:
dependency: "direct main"
description: flutter
Expand Down Expand Up @@ -517,8 +517,8 @@ packages:
dependency: "direct main"
description:
path: "."
ref: "05eca4cb4009bc49d16ec5af2e5973cf55596239"
resolved-ref: "05eca4cb4009bc49d16ec5af2e5973cf55596239"
ref: "0484c632d26d768e85003480bce316b28d3c2933"
resolved-ref: "0484c632d26d768e85003480bce316b28d3c2933"
url: "https://github.com/namidaco/history_manager"
source: git
version: "0.0.1"
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ dependencies:
history_manager:
git:
url: https://github.com/namidaco/history_manager
ref: 05eca4cb4009bc49d16ec5af2e5973cf55596239
ref: 0484c632d26d768e85003480bce316b28d3c2933
flutter_html:
git:
url: https://github.com/zhourengui/flutter_html
Expand All @@ -69,9 +69,9 @@ dependencies:
# ---- Path/File Providers ----
path_provider: ^2.0.14
external_path: ^1.0.3
file_picker: ^5.3.3
file_picker: "6.1.1"

# ----Audio Indexing & Playback ----
# ---- Audio Indexing & Playback ----
just_audio:
git:
url: https://github.com/MSOB7YY/just_audio
Expand Down

0 comments on commit 6d484b7

Please sign in to comment.