mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-05 01:17:44 +08:00
feat: horizontal scroll, fix #11
This commit is contained in:
@@ -23,7 +23,7 @@ class ResourceList extends ConsumerWidget {
|
|||||||
seasonNumber: seasonNum,
|
seasonNumber: seasonNum,
|
||||||
episodeNumber: episodeNum
|
episodeNumber: episodeNum
|
||||||
)));
|
)));
|
||||||
return torrents.when(
|
var widgets = torrents.when(
|
||||||
data: (v) {
|
data: (v) {
|
||||||
bool hasPrivate = false;
|
bool hasPrivate = false;
|
||||||
for (final item in v) {
|
for (final item in v) {
|
||||||
@@ -83,5 +83,9 @@ class ResourceList extends ConsumerWidget {
|
|||||||
: Text("$err");
|
: Text("$err");
|
||||||
},
|
},
|
||||||
loading: () => const MyProgressIndicator());
|
loading: () => const MyProgressIndicator());
|
||||||
|
return isSmallScreen(context)
|
||||||
|
? SingleChildScrollView(
|
||||||
|
scrollDirection: Axis.horizontal, child: widgets)
|
||||||
|
: widgets;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user