mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Use better way to handle gallery with no images and page with no images
This commit is contained in:
@@ -23,7 +23,7 @@ class ThumbnailGridView extends StatelessWidget {
|
||||
itemBuilder: (context, index) {
|
||||
final page = npages[index]!;
|
||||
final fileId =
|
||||
files != null ? files!.files[page.token]!.first.id : null;
|
||||
files != null ? files!.files[page.token]!.firstOrNull?.id : null;
|
||||
final key = Key("thumbnail$gid-${page.index}");
|
||||
return Container(
|
||||
padding: const EdgeInsets.all(4),
|
||||
|
||||
Reference in New Issue
Block a user