mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
fix: tooltips of menu and adaptive pop up menu
This commit is contained in:
parent
6cc2a185d0
commit
261aaf191c
@ -23,8 +23,8 @@ class Action extends StatelessWidget {
|
||||
return PlatformIconButton(
|
||||
icon: icon,
|
||||
onPressed: onPressed,
|
||||
tooltip: text is Text
|
||||
? (text as Text).data
|
||||
tooltip: text is PlatformText
|
||||
? (text as PlatformText).data
|
||||
: text.toStringShallow().split(",").last.replaceAll(
|
||||
"\"",
|
||||
"",
|
||||
|
@ -47,6 +47,7 @@ class SortTracksDropdown extends StatelessWidget {
|
||||
),
|
||||
],
|
||||
onSelected: onChanged,
|
||||
tooltip: "Sort tracks",
|
||||
child: const Icon(Icons.sort_rounded),
|
||||
);
|
||||
}
|
||||
|
@ -131,6 +131,7 @@ class TracksTableView extends HookConsumerWidget {
|
||||
),
|
||||
PlatformPopupMenuButton(
|
||||
closeAfterClick: false,
|
||||
tooltip: "More Actions",
|
||||
items: [
|
||||
PlatformPopupMenuItem(
|
||||
enabled: selectedTracks.isNotEmpty,
|
||||
|
Loading…
Reference in New Issue
Block a user