mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
chore: disable macos ui due to instability
This commit is contained in:
parent
8ce2192e5c
commit
a1896b43d0
@ -210,6 +210,9 @@ class SpotubeState extends ConsumerState<Spotube> with WidgetsBindingObserver {
|
||||
WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
|
||||
setState(() {
|
||||
appPlatform = Theme.of(context).platform;
|
||||
if (appPlatform == TargetPlatform.macOS) {
|
||||
appPlatform = TargetPlatform.android;
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
@ -245,6 +248,9 @@ class SpotubeState extends ConsumerState<Spotube> with WidgetsBindingObserver {
|
||||
|
||||
void changePlatform(TargetPlatform targetPlatform) {
|
||||
appPlatform = targetPlatform;
|
||||
if (appPlatform == TargetPlatform.macOS) {
|
||||
appPlatform = TargetPlatform.android;
|
||||
}
|
||||
setState(() {});
|
||||
}
|
||||
|
||||
|
@ -2,8 +2,6 @@ import 'package:fl_query/fl_query.dart';
|
||||
import 'package:flutter_hooks/flutter_hooks.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:spotify/spotify.dart';
|
||||
import 'package:spotube/extensions/map.dart';
|
||||
import 'package:spotube/extensions/page.dart';
|
||||
import 'package:spotube/hooks/use_spotify_infinite_query.dart';
|
||||
|
||||
class CategoryQueries {
|
||||
@ -29,15 +27,6 @@ class CategoryQueries {
|
||||
}
|
||||
return lastPageData.nextOffset;
|
||||
},
|
||||
jsonConfig: JsonConfig<Page<Category>>(
|
||||
toJson: (page) => page.toJson(),
|
||||
fromJson: (json) => PageJson.fromJson<Category>(
|
||||
json,
|
||||
(json) {
|
||||
return Category.fromJson((json as Map).castKeyDeep<String>());
|
||||
},
|
||||
),
|
||||
),
|
||||
refreshConfig: RefreshConfig.withDefaults(
|
||||
context,
|
||||
staleDuration: const Duration(minutes: 30),
|
||||
|
Loading…
Reference in New Issue
Block a user