Commit 0e38496 1 parent 60ee5be commit 0e38496 Copy full SHA for 0e38496
File tree 1 file changed +18
-25
lines changed
lib/screens/search/widgets
1 file changed +18
-25
lines changed Original file line number Diff line number Diff line change 1
1
import 'package:fluent_ui/fluent_ui.dart' ;
2
- import 'package:rune/widgets/turntile/managed_turntile_screen_item.dart' ;
3
2
3
+ import '../../../widgets/turntile/managed_turntile_screen_item.dart' ;
4
4
import '../../../messages/collection.pb.dart' ;
5
5
6
6
import './search_card.dart' ;
@@ -24,30 +24,23 @@ class SmallScreenSearchTrackListImplementation extends StatelessWidget {
24
24
25
25
@override
26
26
Widget build (BuildContext context) {
27
- final list = (items ?? defaultList).asMap ().entries.map (
28
- (x) {
29
- final index = x.key;
30
- final key = '${collectionType .toString ()}-$index ' ;
31
-
32
- return ManagedTurntileScreenItem (
33
- key: Key (key),
34
- prefix: collectionType.toString (),
35
- groupId: groupId,
36
- row: index,
37
- column: 1 ,
38
- child: x.value,
39
- );
40
- },
41
- ).toList ();
42
-
43
- if (direction == Axis .vertical) {
44
- return Column (
45
- children: list,
46
- );
47
- }
48
-
49
- return Row (
50
- children: list,
27
+ return Flex (
28
+ direction: direction,
29
+ children: (items ?? defaultList).asMap ().entries.map (
30
+ (x) {
31
+ final index = x.key;
32
+ final key = '${collectionType .toString ()}-$index ' ;
33
+
34
+ return ManagedTurntileScreenItem (
35
+ key: Key (key),
36
+ prefix: collectionType.toString (),
37
+ groupId: groupId,
38
+ row: index,
39
+ column: 1 ,
40
+ child: x.value,
41
+ );
42
+ },
43
+ ).toList (),
51
44
);
52
45
}
53
46
}
You can’t perform that action at this time.
0 commit comments