Skip to content

Commit

Permalink
Add tooltip to sort box
Browse files Browse the repository at this point in the history
  • Loading branch information
jslater89 committed Sep 14, 2022
1 parent e55b0f8 commit 38d9519
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions lib/route/view_ratings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -283,25 +283,28 @@ class _RatingsViewPageState extends State<RatingsViewPage> with TickerProviderSt
});
},
),
DropdownButton<RatingSortMode>(
underline: Container(
height: 1,
color: Colors.black,
Tooltip(
message: "Sort rows by this field.",
child: DropdownButton<RatingSortMode>(
underline: Container(
height: 1,
color: Colors.black,
),
items: RatingSortMode.values.map((s) {
return DropdownMenuItem(
child: Text(s.uiLabel),
value: s,
);
}).toList(),
value: _sortMode,
onChanged: (value) {
if(value != null) {
setState(() {
_sortMode = value;
});
}
},
),
items: RatingSortMode.values.map((s) {
return DropdownMenuItem(
child: Text(s.uiLabel),
value: s,
);
}).toList(),
value: _sortMode,
onChanged: (value) {
if(value != null) {
setState(() {
_sortMode = value;
});
}
},
),
SizedBox(
width: 200,
Expand Down

0 comments on commit 38d9519

Please sign in to comment.