Skip to content

Commit b7fc508

Browse files
committed
feat: "all" extension on top
1 parent 2e6c613 commit b7fc508

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/Screens/Extensions/ExtensionList.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ class _ExtensionScreenState extends ConsumerState<Extension> {
166166

167167
List<Source> _getNotInstalledEntries(List<Source> data) {
168168
return data
169-
.where((element) => element.version == element.versionLast!)
170169
.where((element) => !element.isAdded!)
171170
.toList();
172171
}
@@ -260,15 +259,19 @@ class _ExtensionScreenState extends ConsumerState<Extension> {
260259
child: Row(
261260
children: [
262261
Text(
263-
groupByValue,
262+
groupByValue.toUpperCase(),
264263
style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 13),
265264
),
266265
],
267266
),
268267
),
269268
itemBuilder: (context, Source element) =>
270269
ExtensionListTileWidget(source: element),
271-
groupComparator: (group1, group2) => group1.compareTo(group2),
270+
groupComparator: (group1, group2) {
271+
if (group1 == "all") return -1;
272+
if (group2 == "all") return 1;
273+
return group1.compareTo(group2);
274+
},
272275
itemComparator: (item1, item2) => item1.name!.compareTo(item2.name!),
273276
order: GroupedListOrder.ASC,
274277
);

0 commit comments

Comments
 (0)