fix: tooltips of menu and adaptive pop up menu

This commit is contained in:
Kingkor Roy Tirtho 2022-12-08 13:17:22 +06:00
parent 6cc2a185d0
commit 261aaf191c
3 changed files with 4 additions and 2 deletions

View File

@ -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(
"\"", "\"",
"", "",

View File

@ -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),
); );
} }

View File

@ -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,