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

View File

@ -47,6 +47,7 @@ class SortTracksDropdown extends StatelessWidget {
),
],
onSelected: onChanged,
tooltip: "Sort tracks",
child: const Icon(Icons.sort_rounded),
);
}

View File

@ -131,6 +131,7 @@ class TracksTableView extends HookConsumerWidget {
),
PlatformPopupMenuButton(
closeAfterClick: false,
tooltip: "More Actions",
items: [
PlatformPopupMenuItem(
enabled: selectedTracks.isNotEmpty,