Skip to content

Commit

Permalink
[Fix] desktop nav icon, ios pick folder
Browse files Browse the repository at this point in the history
  • Loading branch information
canxin121 committed Nov 2, 2024
1 parent 5020816 commit 794c181
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/desktop/comps/navigation_column.dart
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class MyNavListViewState extends State<MyNavListView> {
NavGroup(title: "浏览", icon: CupertinoIcons.compass, items: [
NavItem(
title: '歌曲排行榜',
icon: CupertinoIcons.search,
icon: CupertinoIcons.music_note_2,
onTap: () {
globalSetNavItemSelected("###MusicChart###");
navigatorToPage(const MusicChartPage(
Expand All @@ -200,7 +200,7 @@ class MyNavListViewState extends State<MyNavListView> {
),
NavItem(
title: '浏览歌单',
icon: CupertinoIcons.search,
icon: CupertinoIcons.music_albums,
onTap: () {
globalSetNavItemSelected("###PlaylistTag###");
navigatorToPage(const PlaylistTagPage(
Expand All @@ -213,7 +213,7 @@ class MyNavListViewState extends State<MyNavListView> {
NavGroup(title: "搜索", icon: CupertinoIcons.search, items: [
NavItem(
title: '搜索单曲',
icon: CupertinoIcons.search,
icon: CupertinoIcons.music_note_2,
onTap: () {
globalSetNavItemSelected("###SearchSingleMusicAggregator###");
navigatorToPage(const MusicAggregatorSearchPage(
Expand All @@ -224,7 +224,7 @@ class MyNavListViewState extends State<MyNavListView> {
),
NavItem(
title: '搜索歌单',
icon: CupertinoIcons.search,
icon: CupertinoIcons.music_albums,
onTap: () {
globalSetNavItemSelected("###SearchMusicList###");
navigatorToPage(const PlaylistSearchPage(
Expand Down
6 changes: 6 additions & 0 deletions lib/utils/pick_file.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import 'dart:io';

import 'package:app_rhyme/utils/global_vars.dart';
import 'package:app_rhyme/utils/log_toast.dart';
import 'package:file_picker/file_picker.dart';
import 'package:permission_handler/permission_handler.dart';

Future<String?> pickDirectory() async {
if (Platform.isIOS) {
LogToast.info("保存路径", "在IOS上,将自动保存到文件中的AppRhyme目录的Export目录中。",
"[pickDictory]The save path will be automatically set to the Export directory in the AppRhyme directory in Files on iOS.");
return "$globalDocumentPath/app_rhyme/Export";
}
var permission = true;
if (Platform.isAndroid) {
permission = await Permission.manageExternalStorage.request().isGranted;
Expand Down

0 comments on commit 794c181

Please sign in to comment.