mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-05 23:19:42 +00:00
fix: change plugin download directory to application support
This commit is contained in:
parent
e5150515f3
commit
7d849b1430
@ -1,3 +1,4 @@
|
||||
import 'package:flutter/material.dart' show Badge;
|
||||
import 'package:flutter_hooks/flutter_hooks.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:shadcn_flutter/shadcn_flutter.dart';
|
||||
@ -83,14 +84,20 @@ class GettingStartedPagePlaybackSection extends HookConsumerWidget {
|
||||
runSpacing: 6,
|
||||
children: [
|
||||
for (final source in AudioSource.values)
|
||||
RadioCard(
|
||||
value: source,
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
audioSourceToIconMap[source]!,
|
||||
Text(source.label),
|
||||
],
|
||||
Badge(
|
||||
isLabelVisible: source == AudioSource.dabMusic,
|
||||
label: const Text("NEW"),
|
||||
backgroundColor: Colors.lime[300],
|
||||
textColor: Colors.black,
|
||||
child: RadioCard(
|
||||
value: source,
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
audioSourceToIconMap[source]!,
|
||||
Text(source.label),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
@ -214,7 +214,7 @@ class MetadataPluginNotifier extends AsyncNotifier<MetadataPluginState> {
|
||||
/// Root directory where all metadata plugins are stored.
|
||||
Future<Directory> _getPluginRootDir() async => Directory(
|
||||
join(
|
||||
(await getApplicationCacheDirectory()).path,
|
||||
(await getApplicationSupportDirectory()).path,
|
||||
"metadata-plugins",
|
||||
),
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user