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