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:flutter_hooks/flutter_hooks.dart';
|
||||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||||
import 'package:shadcn_flutter/shadcn_flutter.dart';
|
import 'package:shadcn_flutter/shadcn_flutter.dart';
|
||||||
@ -83,14 +84,20 @@ class GettingStartedPagePlaybackSection extends HookConsumerWidget {
|
|||||||
runSpacing: 6,
|
runSpacing: 6,
|
||||||
children: [
|
children: [
|
||||||
for (final source in AudioSource.values)
|
for (final source in AudioSource.values)
|
||||||
RadioCard(
|
Badge(
|
||||||
value: source,
|
isLabelVisible: source == AudioSource.dabMusic,
|
||||||
child: Column(
|
label: const Text("NEW"),
|
||||||
mainAxisSize: MainAxisSize.min,
|
backgroundColor: Colors.lime[300],
|
||||||
children: [
|
textColor: Colors.black,
|
||||||
audioSourceToIconMap[source]!,
|
child: RadioCard(
|
||||||
Text(source.label),
|
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.
|
/// Root directory where all metadata plugins are stored.
|
||||||
Future<Directory> _getPluginRootDir() async => Directory(
|
Future<Directory> _getPluginRootDir() async => Directory(
|
||||||
join(
|
join(
|
||||||
(await getApplicationCacheDirectory()).path,
|
(await getApplicationSupportDirectory()).path,
|
||||||
"metadata-plugins",
|
"metadata-plugins",
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user