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(
|
return PlatformIconButton(
|
||||||
icon: icon,
|
icon: icon,
|
||||||
onPressed: onPressed,
|
onPressed: onPressed,
|
||||||
tooltip: text is Text
|
tooltip: text is PlatformText
|
||||||
? (text as Text).data
|
? (text as PlatformText).data
|
||||||
: text.toStringShallow().split(",").last.replaceAll(
|
: text.toStringShallow().split(",").last.replaceAll(
|
||||||
"\"",
|
"\"",
|
||||||
"",
|
"",
|
||||||
|
@ -47,6 +47,7 @@ class SortTracksDropdown extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
onSelected: onChanged,
|
onSelected: onChanged,
|
||||||
|
tooltip: "Sort tracks",
|
||||||
child: const Icon(Icons.sort_rounded),
|
child: const Icon(Icons.sort_rounded),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -131,6 +131,7 @@ class TracksTableView extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
PlatformPopupMenuButton(
|
PlatformPopupMenuButton(
|
||||||
closeAfterClick: false,
|
closeAfterClick: false,
|
||||||
|
tooltip: "More Actions",
|
||||||
items: [
|
items: [
|
||||||
PlatformPopupMenuItem(
|
PlatformPopupMenuItem(
|
||||||
enabled: selectedTracks.isNotEmpty,
|
enabled: selectedTracks.isNotEmpty,
|
||||||
|
Loading…
Reference in New Issue
Block a user