@@ -127,42 +127,41 @@ class _StudyListScreenState extends ConsumerState<StudyListScreen> {
127127 appBar: PlatformAppBar (
128128 title: Text (authUser != null ? context.l10n.studyMenu : context.l10n.studyAllStudies),
129129 actions: [
130- if (_searchController.value.text.isEmpty)
131- ContextMenuIconButton (
132- consumeOutsideTap: true ,
133- icon: const Icon (Icons .sort_outlined),
134- semanticsLabel: 'Sort studies' ,
135- actions: [
136- ContextMenuAction (
137- icon: order == StudyListOrder .hot ? Icons .check : null ,
138- label: context.l10n.studyHot,
139- onPressed: () => setState (() {
140- order = StudyListOrder .hot;
141- }),
142- ),
143- ContextMenuAction (
144- icon: order == StudyListOrder .newest ? Icons .check : null ,
145- label: context.l10n.studyDateAddedNewest,
146- onPressed: () => setState (() {
147- order = StudyListOrder .newest;
148- }),
149- ),
150- ContextMenuAction (
151- icon: order == StudyListOrder .updated ? Icons .check : null ,
152- label: context.l10n.studyRecentlyUpdated,
153- onPressed: () => setState (() {
154- order = StudyListOrder .updated;
155- }),
156- ),
157- ContextMenuAction (
158- icon: order == StudyListOrder .popular ? Icons .check : null ,
159- label: context.l10n.studyMostPopular,
160- onPressed: () => setState (() {
161- order = StudyListOrder .popular;
162- }),
163- ),
164- ],
165- ),
130+ ContextMenuIconButton (
131+ consumeOutsideTap: true ,
132+ icon: const Icon (Icons .sort_outlined),
133+ semanticsLabel: 'Sort studies' ,
134+ actions: [
135+ ContextMenuAction (
136+ icon: order == StudyListOrder .hot ? Icons .check : null ,
137+ label: context.l10n.studyHot,
138+ onPressed: () => setState (() {
139+ order = StudyListOrder .hot;
140+ }),
141+ ),
142+ ContextMenuAction (
143+ icon: order == StudyListOrder .newest ? Icons .check : null ,
144+ label: context.l10n.studyDateAddedNewest,
145+ onPressed: () => setState (() {
146+ order = StudyListOrder .newest;
147+ }),
148+ ),
149+ ContextMenuAction (
150+ icon: order == StudyListOrder .updated ? Icons .check : null ,
151+ label: context.l10n.studyRecentlyUpdated,
152+ onPressed: () => setState (() {
153+ order = StudyListOrder .updated;
154+ }),
155+ ),
156+ ContextMenuAction (
157+ icon: order == StudyListOrder .popular ? Icons .check : null ,
158+ label: context.l10n.studyMostPopular,
159+ onPressed: () => setState (() {
160+ order = StudyListOrder .popular;
161+ }),
162+ ),
163+ ],
164+ ),
166165 ],
167166 bottom: authUser != null
168167 ? PreferredSize (
0 commit comments