Remove yaru dep
This commit is contained in:
parent
a15fae89eb
commit
26a2bd3f5e
21 changed files with 291 additions and 311 deletions
|
@ -1,16 +1,16 @@
|
|||
import 'package:brook/models/decoration_type.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import "package:riverpod_annotation/riverpod_annotation.dart";
|
||||
import 'package:brook/models/decorations.dart';
|
||||
import 'package:brook/providers/button_layout_provider.dart';
|
||||
import 'package:yaru/yaru.dart';
|
||||
import "package:collection/collection.dart";
|
||||
part 'decorations_provider.g.dart';
|
||||
|
||||
@riverpod
|
||||
Decorations decorations(Ref ref) {
|
||||
List<YaruWindowControlType> parse(String section) => section
|
||||
List<DecorationType> parse(String section) => section
|
||||
.split(",")
|
||||
.map((button) => YaruWindowControlType.values.firstWhereOrNull(
|
||||
.map((button) => DecorationType.values.firstWhereOrNull(
|
||||
(element) => element.name == button,
|
||||
))
|
||||
.nonNulls
|
||||
|
|
|
@ -20,7 +20,7 @@ Future<IList<SearchResult>> searchProvider(
|
|||
SearchType.songs => await yt.searchSongs(search),
|
||||
SearchType.albums => await yt.searchAlbums(search),
|
||||
SearchType.videos => await yt.searchVideos(search),
|
||||
SearchType.artists => await yt.searchAlbums(search),
|
||||
SearchType.artists => await yt.searchArtists(search),
|
||||
SearchType.playlists => await yt.searchPlaylists(search),
|
||||
},
|
||||
);
|
||||
|
|
Reference in a new issue