Skip to content

Commit

Permalink
fix: tooltips of menu and adaptive pop up menu
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Dec 8, 2022
1 parent 6cc2a18 commit 261aaf1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
"\"",
"",
Expand Down
1 change: 1 addition & 0 deletions lib/components/shared/sort_tracks_dropdown.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class SortTracksDropdown extends StatelessWidget {
),
],
onSelected: onChanged,
tooltip: "Sort tracks",
child: const Icon(Icons.sort_rounded),
);
}
Expand Down
1 change: 1 addition & 0 deletions lib/components/shared/track_table/tracks_table_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ class TracksTableView extends HookConsumerWidget {
),
PlatformPopupMenuButton(
closeAfterClick: false,
tooltip: "More Actions",
items: [
PlatformPopupMenuItem(
enabled: selectedTracks.isNotEmpty,
Expand Down

0 comments on commit 261aaf1

Please sign in to comment.