-
-
Notifications
You must be signed in to change notification settings - Fork 60
feat: add gnome style type to search #1164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
91c7a76
5abefaa
3b4e3a2
af9aeb0
5f18d35
acf7d5a
a1d3ee0
f8f08a0
09f4ff5
89f6b8f
91f7dd3
cb6fd91
7879de2
54b60f6
8f9032c
3ce136b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ import 'package:safe_change_notifier/safe_change_notifier.dart'; | |
import '../app/view/mobile_page.dart'; | ||
import '../app_config.dart'; | ||
import '../common/data/audio.dart'; | ||
import '../common/data/audio_type.dart'; | ||
import '../common/logging.dart'; | ||
import '../common/page_ids.dart'; | ||
import '../common/view/back_gesture.dart'; | ||
|
@@ -311,4 +312,10 @@ class LibraryModel extends SafeChangeNotifier implements NavigatorObserver { | |
final GlobalKey<NavigatorState> _masterNavigatorKey = | ||
GlobalKey<NavigatorState>(); | ||
GlobalKey<NavigatorState> get masterNavigatorKey => _masterNavigatorKey; | ||
|
||
AudioType getCurrentAudioType() => switch (selectedPageId) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this sadly doesnt always work, as starred stations and subbed podcasts also are put into the sidebar and can be selected :( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. but you could add a function which uses something like isPageInLibrary like checking playlists, podcasts, starredStations, pinnedAlbums and the main page ids |
||
PageIDs.podcasts => AudioType.podcast, | ||
PageIDs.radio => AudioType.radio, | ||
_ => AudioType.local | ||
}; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please also check for mac os (CMD) and windows (control)